diff options
Diffstat (limited to 'settings/users.php')
-rw-r--r-- | settings/users.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php index 1a32a7ecb5b..de40c7d8ef0 100644 --- a/settings/users.php +++ b/settings/users.php @@ -18,7 +18,9 @@ OC_App::setActiveNavigationEntry( 'core_users' ); $users = array(); $groups = array(); -if(OC_User::isAdminUser(OC_User::getUser())) { +$isadmin = OC_User::isAdminUser(OC_User::getUser()); + +if($isadmin) { $accessiblegroups = OC_Group::getGroups(); $accessibleusers = OC_User::getUsers('', 30); $subadmins = OC_SubAdmin::getAllSubAdmins(); |