Skip to content

Commit

Permalink
[13.0][IMP] timeout check triggered on session uid
Browse files Browse the repository at this point in the history
  • Loading branch information
gfcapalbo authored and bosd committed Aug 12, 2023
1 parent 51bd8c2 commit e306bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_session_timeout/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e306bf2

Please sign in to comment.