summaryrefslogtreecommitdiffstats
path: root/settings/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/settings/users.php b/settings/users.php
index 07a7620d3c0..1a32a7ecb5b 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -18,8 +18,7 @@ OC_App::setActiveNavigationEntry( 'core_users' );
$users = array();
$groups = array();
-$isadmin = OC_Group::inGroup(OC_User::getUser(), 'admin')?true:false;
-if($isadmin) {
+if(OC_User::isAdminUser(OC_User::getUser())) {
$accessiblegroups = OC_Group::getGroups();
$accessibleusers = OC_User::getUsers('', 30);
$subadmins = OC_SubAdmin::getAllSubAdmins();