From e306bf2361d37f9db6ddd80df0fc7196ed9c0c2c Mon Sep 17 00:00:00 2001 From: Giovanni Francesco Capalbo Date: Thu, 27 Jan 2022 17:16:57 +0100 Subject: [PATCH] [13.0][IMP] timeout check triggered on session uid --- auth_session_timeout/models/ir_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_session_timeout/models/ir_http.py b/auth_session_timeout/models/ir_http.py index 8b11bc7ec2..2e2338fc0e 100644 --- a/auth_session_timeout/models/ir_http.py +++ b/auth_session_timeout/models/ir_http.py @@ -11,6 +11,6 @@ class IrHttp(models.AbstractModel): def _authenticate(cls, endpoint): res = super(IrHttp, cls)._authenticate(endpoint=endpoint) auth_method = endpoint.routing["auth"] - if auth_method == "user" and request and request.env and request.env.user: + if auth_method == "user" and request and request.session and request.session.uid: request.env.user._auth_timeout_check() return res