File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- if (($ _SESSION ['userContext ' ] === 'user ' ) && ($ _SESSION ['POLICY_USER_VIEW_SUSPENDED ' ] === 'yes ' )) {
3+ if (($ _SESSION ['userContext ' ] === 'user ' ) && ($ panel [ $ user ][ ' SUSPENDED ' ] === ' yes ' ) && ( $ _SESSION ['POLICY_USER_VIEW_SUSPENDED ' ] === 'yes ' )) {
44 $ read_only ='true ' ;
55 }
66
Original file line number Diff line number Diff line change 9393 < div class ="clearfix l-unit__stat-col--left compact-4 text-right ">
9494 < div class ="l-unit-toolbar__col l-unit-toolbar__col--right noselect ">
9595 < div class ="actions-panel clearfix ">
96- < ? if ($ read_only === 'true') {?>
96+ < ? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($ read_only === 'true') ) {?>
9797 <!-- Restrict ability to restore or delete backups when impersonating 'admin' account -->
9898
9999 < ? } else { ?>
100100 < div class ="actions-panel__col actions-panel__download shortcut-d " key-action ="href "> < a href ="/download/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('download')?> "> < i class ="fas fa-file-download status-icon lightblue status-icon dim "> </ i > </ a > </ div >
101+ < ? if ($read_only === 'false') {?>
101102 < div class ="actions-panel__col actions-panel__list shortcut-enter " key-action ="href "> < a href ="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('restore')?> "> < i class ="fas fa-undo status-icon green status-icon dim "> </ i > </ a > </ div >
102103 < div class ="actions-panel__col actions-panel__delete shortcut-delete " key-action ="js ">
103104 < a id ="delete_link_<?=$i?> " class ="data-controls do_delete " title ="<?=_('delete')?> ">
108109 </ div >
109110 </ a >
110111 </ div >
112+ < ? } ?>
111113 < ? } ?>
112114 </ div >
113115 </ div >
You can’t perform that action at this time.
0 commit comments