From 203c03e2626c891fafb1b6e606e4f76f249e3acb Mon Sep 17 00:00:00 2001 From: George Daramouskas Date: Thu, 31 Jan 2019 14:48:16 +0100 Subject: [PATCH] [FIX] Use _compute_session_token to invalidate user sessions on auth_session_timeout --- auth_session_timeout/models/res_users.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auth_session_timeout/models/res_users.py b/auth_session_timeout/models/res_users.py index 04c5bc4c6..c22e17920 100644 --- a/auth_session_timeout/models/res_users.py +++ b/auth_session_timeout/models/res_users.py @@ -102,9 +102,8 @@ class ResUsers(models.Model): 'Exception updating session file access/modified times.', ) - @classmethod - def check(cls, *args, **kwargs): - res = super(ResUsers, cls).check(*args, **kwargs) + def _compute_session_token(self, sid): + res = super(ResUsers, self)._compute_session_token(sid) if http.request: http.request.env.user._auth_timeout_check() return res