[Web] Remove "add domain" from table when not admin, fixes #3267

master
andryyy 2020-01-14 08:15:04 +01:00
parent 2b16ec7124
commit b4ce2b2c7c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<?=$lang['mailbox']['domains'];?> <span class="badge badge-info table-lines"></span> <?=$lang['mailbox']['domains'];?> <span class="badge badge-info table-lines"></span>
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_domain_table" data-table="domain_table"><?=$lang['admin']['refresh'];?></button> <button class="btn btn-xs btn-default refresh_table" data-draw="draw_domain_table" data-table="domain_table"><?=$lang['admin']['refresh'];?></button>
<button class="btn btn-xs btn-success" href="#" data-toggle="modal" data-target="#addDomainModal"><span class="glyphicon glyphicon-plus"></span> <?=$lang['mailbox']['add_domain'];?></button> <? if($_SESSION['mailcow_cc_role'] == "admin"): ?><button class="btn btn-xs btn-success" href="#" data-toggle="modal" data-target="#addDomainModal"><span class="glyphicon glyphicon-plus"></span> <?=$lang['mailbox']['add_domain'];?></button><? endif; ?>
</div> </div>
</div> </div>
<!-- <div class="mass-actions-mailbox" data-actions-header="true"></div> --> <!-- <div class="mass-actions-mailbox" data-actions-header="true"></div> -->