diff options
author | raghunayyar <me@iraghu.com> | 2014-02-17 21:32:48 +0530 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:52:53 +0200 |
commit | 4a30665ec352b3dd44087d5158567213182b9526 (patch) | |
tree | ea94ebe488b97607ed9d81f7bae2e60139bc863a /settings/users.php | |
parent | 8e4bbe82972bb7a3fa81cf74f071653f1642aa65 (diff) | |
download | nextcloud-server-4a30665ec352b3dd44087d5158567213182b9526.tar.gz nextcloud-server-4a30665ec352b3dd44087d5158567213182b9526.zip |
Removes Delete Icon from Admin Group.
Diffstat (limited to 'settings/users.php')
-rw-r--r-- | settings/users.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/settings/users.php b/settings/users.php index 31a54b05c02..a3faa51ea0e 100644 --- a/settings/users.php +++ b/settings/users.php @@ -77,17 +77,25 @@ foreach($accessibleusers as $uid => $displayName) { } foreach( $accessiblegroups as $gid ) { - $groups[] = array( - 'id' => str_replace(' ','', $gid ), - 'name' => $gid, - 'useringroup' => OC_Group::usersInGroup($gid, '', $limit, $offset), - 'isAdmin' => !OC_User::isAdminUser($gid), - ); + if (!OC_User::isAdminUser($gid)) { + $groups[] = array( + 'id' => str_replace(' ','', $gid ), + 'name' => $gid, + 'useringroup' => OC_Group::usersInGroup($gid, '', $limit, $offset) + ); + } else { + $adminGroup[] = array( + 'id' => str_replace(' ','', $gid ), + 'name' => $gid, + 'useringroup' => OC_Group::usersInGroup($gid, '', $limit, $offset) + ); + } } $tmpl = new OC_Template( "settings", "users", "user" ); $tmpl->assign( 'users', $users ); $tmpl->assign( 'groups', $groups ); +$tmpl->assign( 'adminGroup', $adminGroup ); $tmpl->assign( 'isadmin', (int) $isadmin); $tmpl->assign( 'subadmins', $subadmins); $tmpl->assign( 'numofgroups', count($accessiblegroups)); |