summaryrefslogtreecommitdiffstats
path: root/modules/logout.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-03-09 18:08:15 +0100
committerSimon Rettberg2015-03-09 18:08:15 +0100
commitdcb1d7a5b6c057f34f8cc4aa69275cc4ddb109d3 (patch)
tree5d9230b6ba937a272d4e966c9348238667da22f9 /modules/logout.inc.php
parentFourth Commit (diff)
downloadbwlp-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.php6
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();
}
}