Skip to content

Commit

Permalink
Show login required box on news delete page
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 14, 2024
1 parent 14d0162 commit 5bde0d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Templates/News/Delete.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ switch ($error)
}
require('./Includes/header.inc.phtml'); ?>
<div class="container">
<? if (is_null($this->getContext()->error)) { ?>
<? if (!$this->getContext()->acl_allowed) { ?>
<? require('./Includes/LoginRequired.inc.phtml'); ?>
<? } else if (is_null($this->getContext()->error)) { ?>
<h1 class="text-danger">Delete News Post</h1>
<form method="POST" action="?id=<?=filter_var($id, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?>">
<div class="form-group">
Expand Down

0 comments on commit 5bde0d9

Please sign in to comment.