[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:
Fabien Meghazi
2014-03-12 15:35:39 +01:00
parent 8ad325614d
commit b4ffbb4b35
+3
View File
@@ -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):