Skip to content

Commit 0d05d54

Browse files
author
Kristan Kenney
committed
Update conditions
1 parent 3878a8b commit 0d05d54

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

web/templates/admin/list_log.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['user'] !== 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?>
1818
<!-- Hide delete buttons-->
1919
<? } else { ?>
20-
<? if (($_SESSION['userContext'] === 'admin') || (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes'))) {?>
20+
<? if (($_SESSION['userContext'] === 'admin') || (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no'))) {?>
2121
<div class="actions-panel display-inline-block" key-action="js">
2222
<a class="data-controls do_delete ui-button danger cancel">
2323
<i class="do_delete fas fa-times-circle status-icon red"></i><?=_('Delete')?>

web/templates/admin/list_log_auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?>
99
<!-- Hide delete buttons-->
1010
<? } else { ?>
11-
<? if (($_SESSION['userContext'] === 'admin') || (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] === 'yes'))) {?>
11+
<? if (($_SESSION['userContext'] === 'admin') || (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no'))) {?>
1212
<div class="actions-panel display-inline-block" key-action="js">
1313
<a class="data-controls do_delete ui-button danger cancel">
1414
<i class="do_delete fas fa-times-circle status-icon red"></i><?=_('Delete')?>

web/templates/user/edit_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
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')) {?>
7-
<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>
6+
<? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_VIEW_LOGS'] !== 'no')) {?>
7+
<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>
88
<? } ?>
99
</div>
1010
<div class="l-unit-toolbar__buttonstrip float-right">

web/templates/user/list_log.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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') || (!isset($_SESSION['POLICY_USER_DELETE_LOGS']))) {?>
9+
<? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no')) {?>
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')?>

web/templates/user/list_log_auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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') || (!isset($_SESSION['POLICY_USER_DELETE_LOGS']))) {?>
8+
<? if (($_SESSION['userContext'] === 'user') && ($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no')) {?>
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')?>

0 commit comments

Comments
 (0)