From c14cb7d25be6ee080ab0af8e50746823074e6f33 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Thu, 27 Feb 2014 22:45:53 +0100 Subject: [PATCH] Add protection in close_user_session --- modules/plugin_dbui/helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/plugin_dbui/helper.py b/modules/plugin_dbui/helper.py index 886543fe..9bcc4b89 100644 --- a/modules/plugin_dbui/helper.py +++ b/modules/plugin_dbui/helper.py @@ -50,7 +50,8 @@ def close_user_session(): # logout the user auth = current.session.auth if auth: - auth.logout() + if auth.logout: + auth.logout() del current.session.auth # clean the session -- GitLab