Skip to content

Commit

Permalink
Swap unauthorized with includable resource
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 19, 2024
1 parent 7287f8a commit 72babea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Templates/EventLog/View.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ if (stripos($tpl_referer, '/eventlog/view?id=' . $object_id) !== false)
require('./Includes/header.inc.phtml'); ?>
<div class="container">
<? if (!$this->getContext()->acl_allowed) { ?>
<div class="alert alert-danger">
<h1><?=$title?></h1>
<p class="mb-0">You are not authorized to view this page.</p>
</div>
<? require('./Includes/LoginRequired.inc.phtml'); ?>
<? } else if (is_null($object)) { ?>
<div class="alert alert-danger">
<h1><?=$title?></h1>
Expand Down

0 comments on commit 72babea

Please sign in to comment.