[FIX] website#ir.http: do not postprocess arguments on non `website_enabled` endpoints
bzr revid: fme@openerp.com-20140312143539-bzf54zlzeawqkfuo
This commit is contained in:
parent
8ad325614d
commit
b4ffbb4b35
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue