Module: check_mk
Branch: master
Commit: 17d19fff6002e7d5274b57e316b172a7bb295197
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=17d19fff6002e7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 20 14:10:40 2012 +0100
FIX: Multisite authed users without permission to multisite are
automatically logged out after showing the error messag
---
ChangeLog | 2 ++
web/htdocs/index.py | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 25e3b1a..7c114de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -51,6 +51,8 @@
* FIX: Fixed wrong redirection after login in some cases
* FIX: Fixed missing stats grouping in alert statistics view
* FIX: Fixed preview table styling in view editor
+ * FIX: Multisite authed users without permission to multisite are
+ automatically logged out after showing the error message
BI:
* New column (painter) for simplistic box display of tree.
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 25916e5..4c13de4 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -284,6 +284,11 @@ def handler(req, profiling = True):
reason += _("<b>You do not have any roles.</b> ")
reason += _("If you think this is an error, "
"please ask your administrator to check the permissions
configuration.")
+
+ if config.auth_type == 'cookie':
+ reason += _('<p>You have been logged out. Please reload the
page to re-authenticate.</p>')
+ login.del_auth_cookie()
+
raise MKAuthException(reason)
# General access allowed. Now connect to livestatus