diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-03-12 15:35:39 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-03-12 15:35:39 +0100 |
| commit | b4ffbb4b35ce75b7bd0f83d22972089bed8e44d7 (patch) | |
| tree | aa7cc274040b157ee9d68193659dd56fd84deb74 | |
| parent | 8ad325614de9b600e73ad40a680b3fb56d1aa298 (diff) | |
[FIX] website#ir.http: do not postprocess arguments on non `website_enabled` endpoints
bzr revid: fme@openerp.com-20140312143539-bzf54zlzeawqkfuo
| -rw-r--r-- | addons/website/models/ir_http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index f73138313ab..47c0853d6be 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -79,6 +79,9 @@ class ir_http(orm.AbstractModel): return self._dispatch() def _postprocess_args(self, arguments, rule): + if not getattr(request, 'website_enabled', False): + return super(ir_http, self)._postprocess_args(arguments, rule) + for arg, val in arguments.items(): # Replace uid placeholder by the current request.uid if isinstance(val, orm.browse_record) and isinstance(val._uid, RequestUID): |
