aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-10-14 17:07:14 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 20:41:10 +0100
commite8d614b59eebf34c34c82395886c17f22f10b3d9 (patch)
tree754c042e62441c8b39cda829c3a165fd6f771413 /settings
parentf6ff624e3df023529a0a53cfb232178a973aef65 (diff)
downloadnextcloud-server-e8d614b59eebf34c34c82395886c17f22f10b3d9.tar.gz
nextcloud-server-e8d614b59eebf34c34c82395886c17f22f10b3d9.zip
Hide "Add group" for subadmins
Diffstat (limited to 'settings')
-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 980cdab86c5..beb0f275a33 100644
--- a/settings/templates/users/part.grouplist.php
+++ b/settings/templates/users/part.grouplist.php
@@ -1,10 +1,12 @@
<ul id="usergrouplist" data-sort-groups="<?php p($_['sortGroups']); ?>">
<!-- Add new group -->
+ <?php if ($_['isAdmin']) { ?>
<li id="newgroup-init">
<a href="#">
<span><?php p($l->t('Add group'))?></span>
</a>
</li>
+ <?php } ?>
<li id="newgroup-form" style="display: none">
<form>
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group name')); ?> …" />