[IMP] helpful exception message
bzr revid: fva@openerp.com-20130924151913-mq8sj2a8hahylmig
This commit is contained in:
parent
7997fcf452
commit
eae9b15731
|
@ -1086,7 +1086,7 @@ class DataSet(http.Controller):
|
|||
return records
|
||||
|
||||
if method.startswith('_'):
|
||||
raise Exception("Access denied")
|
||||
raise Exception("Access Denied: Underscore prefixed methods cannot be remotely called")
|
||||
|
||||
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue