diff --git a/modules/plugin_dbui/helper.py b/modules/plugin_dbui/helper.py index 886543fef52ce20f87e23d6b2bd3db20a283c39c..9bcc4b897e0cd4fc6eded1e9f39c994736f52fe3 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