Browse Source
Merge pull request #1243 from xtof-osd/10.0
[FIX] Avoid crash when using auth_session_timeout module with XML-RPC API
pull/1248/head
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
auth_session_timeout/__manifest__.py
-
auth_session_timeout/models/res_users.py
|
@ -14,7 +14,7 @@ |
|
|
'maintainer': 'Odoo Community Association (OCA)', |
|
|
'maintainer': 'Odoo Community Association (OCA)', |
|
|
'website': "http://acsone.eu", |
|
|
'website': "http://acsone.eu", |
|
|
'category': 'Tools', |
|
|
'category': 'Tools', |
|
|
'version': '10.0.1.0.1', |
|
|
|
|
|
|
|
|
'version': '10.0.1.0.2', |
|
|
'license': 'AGPL-3', |
|
|
'license': 'AGPL-3', |
|
|
'data': [ |
|
|
'data': [ |
|
|
'data/ir_config_parameter_data.xml' |
|
|
'data/ir_config_parameter_data.xml' |
|
|
|
@ -105,5 +105,6 @@ class ResUsers(models.Model): |
|
|
@classmethod |
|
|
@classmethod |
|
|
def check(cls, *args, **kwargs): |
|
|
def check(cls, *args, **kwargs): |
|
|
res = super(ResUsers, cls).check(*args, **kwargs) |
|
|
res = super(ResUsers, cls).check(*args, **kwargs) |
|
|
http.request.env.user._auth_timeout_check() |
|
|
|
|
|
|
|
|
if http.request: |
|
|
|
|
|
http.request.env.user._auth_timeout_check() |
|
|
return res |
|
|
return res |