diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-23 01:55:47 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-23 01:55:47 +0000 |
commit | 8e518978b3f570930a8f5c3bfcbceb4b2ef61f78 (patch) | |
tree | e67ab7a2b0ec0b032977698a12513a504215220d /engine/lib/users.php | |
parent | 1f517f9af8545e5a332f83cad8f04246ba6b35b9 (diff) | |
download | elgg-8e518978b3f570930a8f5c3bfcbceb4b2ef61f78.tar.gz elgg-8e518978b3f570930a8f5c3bfcbceb4b2ef61f78.tar.bz2 |
Refs #3165 new admin users all get admin widgets
git-svn-id: http://code.elgg.org/elgg/trunk@8823 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 55bacdcb2..6733c9d3e 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1001,22 +1001,6 @@ $allow_multiple_emails = false, $friend_guid = 0, $invitecode = '') { } } - // Check to see if we've registered the first admin yet. - // If not, this is the first admin user! - $have_admin = datalist_get('admin_registered'); - - if (!$have_admin) { - // makeAdmin() calls ElggUser::canEdit(). - // right now no one is logged in and so canEdit() returns false. - // instead of making an override for this one instance that is called on every - // canEdit() call, just override the access system to set the first admin user. - // @todo remove this when Cash merges in the new installer - $ia = elgg_set_ignore_access(TRUE); - $user->makeAdmin(); - datalist_set('admin_registered', 1); - elgg_set_ignore_access($ia); - } - // Turn on email notifications by default set_user_notification_setting($user->getGUID(), 'email', true); |