Removes Delete Icon from Admin Group.

This commit is contained in:
raghunayyar 2014-02-17 21:32:48 +05:30 committed by Arthur Schiwon
parent 8e4bbe8297
commit 4a30665ec3
2 changed files with 25 additions and 6 deletions

View file

@ -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']) ?>">

View file

@ -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));