diff options
author | Christian Hofmaier | 2017-10-24 16:19:34 +0200 |
---|---|---|
committer | Christian Hofmaier | 2017-10-24 16:19:34 +0200 |
commit | cb44274c8228e232999232c7bd4ef54baa4ff6db (patch) | |
tree | d327bfa35ffe92ae5d55292019aba3caf8d81745 /modules-available/internetaccess | |
parent | [news] user is now checked if he's logged in before he can access the module (diff) | |
download | slx-admin-cb44274c8228e232999232c7bd4ef54baa4ff6db.tar.gz slx-admin-cb44274c8228e232999232c7bd4ef54baa4ff6db.tar.xz slx-admin-cb44274c8228e232999232c7bd4ef54baa4ff6db.zip |
[internetaccess] user is now checked if he's logged in before he can access the module
Diffstat (limited to 'modules-available/internetaccess')
-rw-r--r-- | modules-available/internetaccess/page.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/internetaccess/page.inc.php b/modules-available/internetaccess/page.inc.php index 4f4cb8f3..b1dff722 100644 --- a/modules-available/internetaccess/page.inc.php +++ b/modules-available/internetaccess/page.inc.php @@ -7,6 +7,11 @@ class Page_InternetAccess extends Page { User::load(); + if (!User::isLoggedIn()) { + Message::addError('main.no-permission'); + Util::redirect('?do=Main'); + } + $action = Request::any('action', 'show'); if ($action == 'save') { |