Skip to content

Commit 35eb24f

Browse files
committed
Resolve issue #34 NOT_LOGGED_IN constant undefined
1 parent f638731 commit 35eb24f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates/News/Delete.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ switch ($this->getContext()->error) {
1616
case "NOT_FOUND":
1717
$message = "Cannot find news post by that id.";
1818
break;
19+
case "NOT_LOGGED_IN":
20+
$message = "You must be logged in to delete news posts.";
21+
break;
1922
case "INVALID_CSRF":
2023
$message = "The Cross-Site Request Forgery token was invalid. "
2124
. "Either the delete news post form expired, or "

0 commit comments

Comments
 (0)