File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 8585 < div class ="actions-panel clearfix ">
8686 < 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 >
8787 < 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 >
88- < div class ="actions-panel__col actions-panel__delete shortcut-delete " key-action ="js ">
89- < a id ="delete_link_<?=$i?> " class ="data-controls do_delete " title ="<?=_('delete')?> ">
90- < i class ="fas fa-trash status-icon red status-icon dim do_delete "> </ i >
91- < input type ="hidden " name ="delete_url " value ="/delete/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?> " />
92- < div id ="delete_dialog_<?=$i?> " class ="confirmation-text-delete hidden " title ="<?=_('Confirmation')?> ">
93- < p class ="confirmation "> < ?=sprintf(_('DELETE_BACKUP_CONFIRMATION'),$key)?> </ p >
94- </ div >
95- </ a >
96- </ div >
88+ < ? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?>
89+ <!-- Restrict ability to delete backups when impersonating 'admin' account -->
90+ < ? } else { ?>
91+ < div class ="actions-panel__col actions-panel__delete shortcut-delete " key-action ="js ">
92+ < a id ="delete_link_<?=$i?> " class ="data-controls do_delete " title ="<?=_('delete')?> ">
93+ < i class ="fas fa-trash status-icon red status-icon dim do_delete "> </ i >
94+ < input type ="hidden " name ="delete_url " value ="/delete/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?> " />
95+ < div id ="delete_dialog_<?=$i?> " class ="confirmation-text-delete hidden " title ="<?=_('Confirmation')?> ">
96+ < p class ="confirmation "> < ?=sprintf(_('DELETE_BACKUP_CONFIRMATION'),$key)?> </ p >
97+ </ div >
98+ </ a >
99+ </ div >
100+ < ? } ?>
97101 </ div >
98102 </ div >
99103 </ div >
You can’t perform that action at this time.
0 commit comments