projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8219144
)
[FIX] no traceback when access denied
author
Fabien Pinckaers
<fp@tinyerp.com>
Fri, 28 Aug 2009 16:50:27 +0000
(18:50 +0200)
committer
Fabien Pinckaers
<fp@tinyerp.com>
Fri, 28 Aug 2009 16:50:27 +0000
(18:50 +0200)
bzr revid: fp@tinyerp.com-
20090828165027
-uh9a77aqbsyecr2r
bin/netsvc.py
patch
|
blob
|
history
diff --git
a/bin/netsvc.py
b/bin/netsvc.py
index
339219e
..
aadded3
100644
(file)
--- a/
bin/netsvc.py
+++ b/
bin/netsvc.py
@@
-235,9
+235,9
@@
class OpenERPDispatcher:
Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
def dispatch(self, service_name, method, params):
+ if service_name not in GROUPS['web-services']:
+ raise Exception('AccessDenied')
try:
- if service_name not in GROUPS['web-services']:
- raise Exception("%s -- %s\n\n%s"%('AccessDenied', 'Service not available', ''))
self.log('service', service_name)
self.log('method', method)
self.log('params', params)