Removes Delete Icon from Admin Group.
This commit is contained in:
parent
8e4bbe8297
commit
4a30665ec3
2 changed files with 25 additions and 6 deletions
|
@ -28,6 +28,17 @@ $_['subadmingroups'] = array_flip($items);
|
|||
<li>
|
||||
<a href="#"><?php p($l->t('Everyone')); ?></a>
|
||||
</li>
|
||||
|
||||
<!-- The Admin Group -->
|
||||
<?php foreach($_["adminGroup"] as $adminGroup): ?>
|
||||
<li>
|
||||
<a href="#"><?php p($l->t('Admins')); ?></a>
|
||||
<span class="utils">
|
||||
<span class="usercount"><?php p(count($adminGroup['useringroup'])); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!--List of Groups-->
|
||||
<?php foreach($_["groups"] as $group): ?>
|
||||
<li data-gid="<?php p($group['name']) ?>">
|
||||
|
|
|
@ -77,17 +77,25 @@ foreach($accessibleusers as $uid => $displayName) {
|
|||
}
|
||||
|
||||
foreach( $accessiblegroups as $gid ) {
|
||||
if (!OC_User::isAdminUser($gid)) {
|
||||
$groups[] = array(
|
||||
'id' => str_replace(' ','', $gid ),
|
||||
'name' => $gid,
|
||||
'useringroup' => OC_Group::usersInGroup($gid, '', $limit, $offset),
|
||||
'isAdmin' => !OC_User::isAdminUser($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));
|
||||
|
|
Loading…
Reference in a new issue