diff options
author | Christian Hofmaier | 2017-10-24 16:18:36 +0200 |
---|---|---|
committer | Christian Hofmaier | 2017-10-24 16:18:36 +0200 |
commit | 48476382f81fce9cc7005e74d74b010757733ad1 (patch) | |
tree | 8f3638349a8ccd07e5b52785aeed58bf897a6e53 | |
parent | [statistics] moved "add filter" button closer to the filter field (diff) | |
download | slx-admin-48476382f81fce9cc7005e74d74b010757733ad1.tar.gz slx-admin-48476382f81fce9cc7005e74d74b010757733ad1.tar.xz slx-admin-48476382f81fce9cc7005e74d74b010757733ad1.zip |
[news] user is now checked if he's logged in before he can access the module
-rw-r--r-- | modules-available/news/page.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/news/page.inc.php b/modules-available/news/page.inc.php index bf70f1a8..d6ad03dd 100644 --- a/modules-available/news/page.inc.php +++ b/modules-available/news/page.inc.php @@ -31,6 +31,10 @@ class Page_News extends Page // load user, we will need it later User::load(); + if (!User::isLoggedIn()) { + Message::addError('main.no-permission'); + Util::redirect('?do=Main'); + } // check which action we need to do $action = Request::any('action', 'show'); |