diff options
author | raul | 2014-07-10 16:38:07 +0200 |
---|---|---|
committer | Michael Pereira Neves | 2014-07-11 15:05:32 +0200 |
commit | 18031b98bba20c79e77f8bd6dd0d07d4a4116ab2 (patch) | |
tree | d15d1c1bd41e2c31a8551d3de48a48f0b1c4333a /modules/news.inc.php | |
parent | [i18n] reorganized the internationalization system (diff) | |
download | slx-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.php | 2 |
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 |