Skip to content

Commit e306bf2

Browse files
gfcapalbobosd
authored andcommitted
[13.0][IMP] timeout check triggered on session uid
1 parent 51bd8c2 commit e306bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth_session_timeout/models/ir_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class IrHttp(models.AbstractModel):
1111
def _authenticate(cls, endpoint):
1212
res = super(IrHttp, cls)._authenticate(endpoint=endpoint)
1313
auth_method = endpoint.routing["auth"]
14-
if auth_method == "user" and request and request.env and request.env.user:
14+
if auth_method == "user" and request and request.session and request.session.uid:
1515
request.env.user._auth_timeout_check()
1616
return res

0 commit comments

Comments
 (0)