diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-03 23:20:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 23:20:58 +0100 |
commit | 2a0f5407ba10af5f0849a31fb1867fff6afed000 (patch) | |
tree | ee969c94443de751f42dd5de708702dc4a37735d | |
parent | ac61f641905a2d2d79b8d379b5974fe1d15d9584 (diff) | |
parent | e8d614b59eebf34c34c82395886c17f22f10b3d9 (diff) | |
download | nextcloud-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.php | 2 |
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')); ?> …" /> |