diff options
author | Simon Rettberg | 2015-03-09 18:08:15 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-03-09 18:08:15 +0100 |
commit | dcb1d7a5b6c057f34f8cc4aa69275cc4ddb109d3 (patch) | |
tree | 5d9230b6ba937a272d4e966c9348238667da22f9 /modules/logout.inc.php | |
parent | Fourth Commit (diff) | |
download | bwlp-webadmin-dcb1d7a5b6c057f34f8cc4aa69275cc4ddb109d3.tar.gz bwlp-webadmin-dcb1d7a5b6c057f34f8cc4aa69275cc4ddb109d3.tar.xz bwlp-webadmin-dcb1d7a5b6c057f34f8cc4aa69275cc4ddb109d3.zip |
+AGB, +DeleteUser feature
Diffstat (limited to 'modules/logout.inc.php')
-rw-r--r-- | modules/logout.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/logout.inc.php b/modules/logout.inc.php index 1f22fb4..f1379d6 100644 --- a/modules/logout.inc.php +++ b/modules/logout.inc.php @@ -5,8 +5,10 @@ class Page_Logout extends Page public function doPreprocess() { - if (Request::any('noredirect') === false) { - User::load(); + if (!User::load()) { + Util::redirect('?do=Main'); + } + if (User::isLocalOnly()) { User::logout(); } } |