summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-03 23:20:58 +0100
committerGitHub <noreply@github.com>2016-11-03 23:20:58 +0100
commit2a0f5407ba10af5f0849a31fb1867fff6afed000 (patch)
treeee969c94443de751f42dd5de708702dc4a37735d
parentac61f641905a2d2d79b8d379b5974fe1d15d9584 (diff)
parente8d614b59eebf34c34c82395886c17f22f10b3d9 (diff)
downloadnextcloud-server-2a0f5407ba10af5f0849a31fb1867fff6afed000.tar.gz
nextcloud-server-2a0f5407ba10af5f0849a31fb1867fff6afed000.zip
Merge pull request #2006 from nextcloud/downstream-26380
[oC] Hide "Add group" for subadmins
-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')); ?> …" />