Skip to content

Commit 5bde0d9

Browse files
committed
Show login required box on news delete page
1 parent 14d0162 commit 5bde0d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Templates/News/Delete.phtml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ switch ($error)
1717
}
1818
require('./Includes/header.inc.phtml'); ?>
1919
<div class="container">
20-
<? if (is_null($this->getContext()->error)) { ?>
20+
<? if (!$this->getContext()->acl_allowed) { ?>
21+
<? require('./Includes/LoginRequired.inc.phtml'); ?>
22+
<? } else if (is_null($this->getContext()->error)) { ?>
2123
<h1 class="text-danger">Delete News Post</h1>
2224
<form method="POST" action="?id=<?=filter_var($id, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?>">
2325
<div class="form-group">

0 commit comments

Comments
 (0)