1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-12 10:45:14 +02:00

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

This commit is contained in:
andryyy 2020-01-14 08:15:04 +01:00
parent 2b16ec7124
commit b4ce2b2c7c

View File

@ -34,7 +34,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<?=$lang['mailbox']['domains'];?> <span class="badge badge-info table-lines"></span>
<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-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 class="mass-actions-mailbox" data-actions-header="true"></div> -->