Skip to content

Commit

Permalink
Check both ACL_NOT_SET/NOT_LOGGED_IN
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 14, 2024
1 parent 0303b17 commit fb2283d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Templates/Document/Delete.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ switch ($error)
}
require('./Includes/header.inc.phtml'); ?>
<div class="container">
<? if ($error === DeleteModel::ERROR_ACL_NOT_SET) { ?>
<? if ($error === DeleteModel::ERROR_ACL_NOT_SET || $error === DeleteModel::ERROR_NOT_LOGGED_IN) { ?>
<? require('./Includes/LoginRequired.inc.phtml'); ?>
<? } else if (\is_null($error)) { ?>
<h1 class="text-danger">Delete Document</h1>
Expand Down

0 comments on commit fb2283d

Please sign in to comment.