File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ json_list() {
7878 "RESTRICTED_ADMIN": "' $RESTRICTED_ADMIN ' ",
7979 "HIDE_ADMIN_ACCOUNT": "' $HIDE_ADMIN_ACCOUNT ' ",
8080 "POLICY_USER_EDIT_DETAILS": "' $POLICY_USER_EDIT_DETAILS ' ",
81- "POLICY_USER_DELETE_LOGS": "' $POLICY_USER_DELETE_LOGS ' "
81+ "POLICY_USER_DELETE_LOGS": "' $POLICY_USER_DELETE_LOGS ' ",
82+ "POLICY_USER_VIEW_LOGS": "' $POLICY_USER_VIEW_LOGS ' "
8283 }
8384 }'
8485}
Original file line number Diff line number Diff line change 33 < div class ="l-unit-toolbar__buttonstrip ">
44 < a class ="ui-button cancel " dir ="ltr " id ="btn-back " href ="/list/user/ "> < i class ="fas fa-arrow-left status-icon blue "> </ i > < ?=_('Back')?> </ a >
55 < a href ="/list/key/ " id ="btn-create " class ="ui-button cancel " dir ="ltr " title ="<?=_('Manage SSH keys');?> "> < i class ="fas fa-key status-icon orange "> </ i > < ?=_('Manage SSH keys')?> </ a >
6+ < ? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes')) {?>
67 < a href ="/list/log/ " id ="btn-create " class ="ui-button cancel " dir ="ltr " title ="<?=_('Logs');?> "> < i class ="fas fa-history status-icon maroon "> </ i > < ?=_('Logs')?> </ a >
8+ < ? } ?>
79 </ div >
810 < div class ="l-unit-toolbar__buttonstrip float-right ">
911 < a href ="# " class ="ui-button " data-action ="submit " data-id ="vstobjects "> < i class ="fas fa-save status-icon purple "> </ i > < ?=_('Save')?> </ a >
Original file line number Diff line number Diff line change 66 </ div >
77 < div class ="l-unit-toolbar__buttonstrip float-right ">
88 < a href ="javascript:location.reload(); " class ="ui-button cancel " dir ="ltr "> < i class ="fas fa-redo status-icon green "> </ i > < ?=_('Refresh')?> </ a >
9- < ? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes')) {?>
9+ < ? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes') || (!isset($_SESSION['POLICY_USER_DELETE_LOGS'])) ) {?>
1010 < div class ="actions-panel display-inline-block " key-action ="js ">
1111 < a class ="data-controls do_delete ui-button danger cancel ">
1212 < i class ="do_delete fas fa-times-circle status-icon red "> </ i > < ?=_('Delete')?>
Original file line number Diff line number Diff line change 55 </ div >
66 < div class ="l-unit-toolbar__buttonstrip float-right ">
77 < a href ="javascript:location.reload(); " class ="ui-button cancel " dir ="ltr "> < i class ="fas fa-redo status-icon green "> </ i > < ?=_('Refresh')?> </ a >
8- < ? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes')) {?>
8+ < ? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes') || (!isset($_SESSION['POLICY_USER_DELETE_LOGS'])) ) {?>
99 < div class ="actions-panel display-inline-block " key-action ="js ">
1010 < a class ="data-controls do_delete ui-button danger cancel ">
1111 < i class ="do_delete fas fa-times-circle status-icon red "> </ i > < ?=_('Delete')?>
You can’t perform that action at this time.
0 commit comments