Browse Source

Fix check to allow log deletion

Kristan Kenney 5 years ago
parent
commit
9f430d7d30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/templates/admin/list_log.html

+ 1 - 1
web/templates/admin/list_log.html

@@ -14,7 +14,7 @@
     </div>
     <div class="l-unit-toolbar__buttonstrip float-right">
       <a href="javascript:location.reload();" class="ui-button cancel" dir="ltr"><i class="fas fa-redo status-icon green"></i><?=_('Refresh')?></a>
-    <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?>
+    <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['user'] !== 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?>
       <!-- Hide delete buttons-->
     <? } else { ?>
       <div class="actions-panel display-inline-block" key-action="js">