Skip to content

Commit 72babea

Browse files
committed
Swap unauthorized with includable resource
1 parent 7287f8a commit 72babea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Templates/EventLog/View.phtml

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ if (stripos($tpl_referer, '/eventlog/view?id=' . $object_id) !== false)
7373
require('./Includes/header.inc.phtml'); ?>
7474
<div class="container">
7575
<? if (!$this->getContext()->acl_allowed) { ?>
76-
<div class="alert alert-danger">
77-
<h1><?=$title?></h1>
78-
<p class="mb-0">You are not authorized to view this page.</p>
79-
</div>
76+
<? require('./Includes/LoginRequired.inc.phtml'); ?>
8077
<? } else if (is_null($object)) { ?>
8178
<div class="alert alert-danger">
8279
<h1><?=$title?></h1>

0 commit comments

Comments
 (0)