summaryrefslogtreecommitdiffstats
path: root/modules-available/news
diff options
context:
space:
mode:
authorChristian Hofmaier2017-10-24 16:18:36 +0200
committerChristian Hofmaier2017-10-24 16:18:36 +0200
commit48476382f81fce9cc7005e74d74b010757733ad1 (patch)
tree8f3638349a8ccd07e5b52785aeed58bf897a6e53 /modules-available/news
parent[statistics] moved "add filter" button closer to the filter field (diff)
downloadslx-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
Diffstat (limited to 'modules-available/news')
-rw-r--r--modules-available/news/page.inc.php4
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');