summaryrefslogtreecommitdiffstats
path: root/settings/templates/users
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2015-08-18 20:20:19 +0200
committermichag86 <micha_g@arcor.de>2015-08-18 20:20:19 +0200
commit9ad4510f5b8ddc5f932f78e55adeb6763906d12b (patch)
treeab01b99d832a1888dcecfec97978ec0fc80dc13c /settings/templates/users
parentf84b7907ab247985d71efe36fd5a0fffc713400b (diff)
downloadnextcloud-server-9ad4510f5b8ddc5f932f78e55adeb6763906d12b.tar.gz
nextcloud-server-9ad4510f5b8ddc5f932f78e55adeb6763906d12b.zip
hide delete icon on group for subadmins
because they cannot delete a group
Diffstat (limited to 'settings/templates/users')
-rw-r--r--settings/templates/users/part.grouplist.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings/templates/users/part.grouplist.php b/settings/templates/users/part.grouplist.php
index 51638c7bcce..cd6ac4a1e89 100644
--- a/settings/templates/users/part.grouplist.php
+++ b/settings/templates/users/part.grouplist.php
@@ -43,9 +43,11 @@
</a>
<span class="utils">
<span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span>
+ <?php if($_['isAdmin']): ?>
<a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">
<img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" class="svg" />
</a>
+ <?php endif; ?>
</span>
</li>
<?php endforeach; ?>