summaryrefslogtreecommitdiffstats
path: root/modules/news.inc.php
diff options
context:
space:
mode:
authorraul2014-07-10 16:38:07 +0200
committerMichael Pereira Neves2014-07-11 15:05:32 +0200
commit18031b98bba20c79e77f8bd6dd0d07d4a4116ab2 (patch)
treed15d1c1bd41e2c31a8551d3de48a48f0b1c4333a /modules/news.inc.php
parent[i18n] reorganized the internationalization system (diff)
downloadslx-admin-18031b98bba20c79e77f8bd6dd0d07d4a4116ab2.tar.gz
slx-admin-18031b98bba20c79e77f8bd6dd0d07d4a4116ab2.tar.xz
slx-admin-18031b98bba20c79e77f8bd6dd0d07d4a4116ab2.zip
[slx-admin] redirects users with no permissions to the main page
Diffstat (limited to 'modules/news.inc.php')
-rw-r--r--modules/news.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/news.inc.php b/modules/news.inc.php
index e5be99ac..fc5c1892 100644
--- a/modules/news.inc.php
+++ b/modules/news.inc.php
@@ -30,7 +30,7 @@ class Page_News extends Page
// only admins should be able to edit news
if (!User::hasPermission('superadmin')) {
Message::addError('no-permission');
- return;
+ Util::redirect('?do=Main');
}
// check which action we need to do