|
6 | 6 | <div class="l-sort clearfix noselect"> |
7 | 7 | <div class="l-unit-toolbar__buttonstrip"> |
8 | 8 | <a class="ui-button cancel" dir="ltr" id="btn-back" href="/list/mail/"><i class="fas fa-arrow-left status-icon blue"></i><?=_('Back')?></a> |
9 | | - <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
| 9 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?> |
10 | 10 | <!-- Hide item creation button when impersonating 'admin' account --> |
11 | 11 | <? } else { ?> |
12 | 12 | <a href="/add/mail/?domain=<?=htmlentities($_GET['domain'])?>" id="btn-create" class="ui-button cancel" dir="ltr"><i class="fas fa-plus-circle status-icon green"></i><?=_('Add Mail Account')?></a> |
|
31 | 31 | <button type="submit" class="l-sort-toolbar__filter-apply" onclick="return doSearch('/search/')" value="" title="<?=_('Search')?>"><i class="fas fa-search"></i></button> |
32 | 32 | </form> |
33 | 33 | </td> |
34 | | - <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
| 34 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?> |
35 | 35 | <!-- Hide bulk actions for domain items when impersonating 'admin' account--> |
36 | 36 | <? } else { ?> |
37 | 37 | <td> |
|
100 | 100 | <input type="hidden" value="<?php echo $_GET['domain'] ?>" name="domain" /> |
101 | 101 | </div> |
102 | 102 | <div class="clearfix l-unit__stat-col--left wide-3 truncate"> |
103 | | - <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') || ($data[$key]['SUSPENDED'] == 'yes')) {?> |
| 103 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes') || ($data[$key]['SUSPENDED'] == 'yes')) {?> |
104 | 104 | <b><?=$key."@".$_GET['domain']?></b> |
105 | 105 | <? } else { ?> |
106 | 106 | <b><a href="/edit/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Mail Account')?>: <?=$key?>@<?=htmlspecialchars($_GET['domain'])?>"><?=$key."@".$_GET['domain']?></a></b> |
|
110 | 110 | <div class="clearfix l-unit__stat-col--left text-right compact-4"> |
111 | 111 | <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect"> |
112 | 112 | <div class="actions-panel clearfix"> |
113 | | - <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
| 113 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?> |
114 | 114 | <!-- Restrict the ability to edit, delete, or suspend domain items when impersonating 'admin' account --> |
115 | 115 | <? if ($data[$key]['SUSPENDED'] == 'no') {?> |
116 | 116 | <div class="actions-panel__col actions-panel__edit" key-action="href"><a href="http://<?=$v_webmail_alias;?>.<?=htmlspecialchars($_GET['domain'])?>/?_user=<?=$key?>@<?=htmlspecialchars($_GET['domain'])?>" target="_blank" title="<?=_('open webmail')?>"><i class="fas fa-envelope-open-text status-icon maroon status-icon dim"></i></a></div> |
|
0 commit comments