Hide "Add group" for subadmins

This commit is contained in:
Vincent Petry 2016-10-14 17:07:14 +02:00 committed by Roeland Jago Douma
parent f6ff624e3d
commit e8d614b59e
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 2 additions and 0 deletions

View File

@ -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')); ?> …" />