We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d0162 commit 5bde0d9Copy full SHA for 5bde0d9
src/Templates/News/Delete.phtml
@@ -17,7 +17,9 @@ switch ($error)
17
}
18
require('./Includes/header.inc.phtml'); ?>
19
<div class="container">
20
-<? if (is_null($this->getContext()->error)) { ?>
+<? if (!$this->getContext()->acl_allowed) { ?>
21
+<? require('./Includes/LoginRequired.inc.phtml'); ?>
22
+<? } else if (is_null($this->getContext()->error)) { ?>
23
<h1 class="text-danger">Delete News Post</h1>
24
<form method="POST" action="?id=<?=filter_var($id, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?>">
25
<div class="form-group">
0 commit comments