bzr revid: fp@tinyerp.com-20090828164537-jtrz05vgj9zmwyq9
This commit is contained in:
Fabien Pinckaers 2009-08-28 18:45:37 +02:00
parent c8e7057f2f
commit 82191446b3
2 changed files with 2 additions and 1 deletions

View File

@ -236,6 +236,8 @@ class OpenERPDispatcher:
def dispatch(self, service_name, method, params):
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)

View File

@ -86,7 +86,6 @@ class osv_pool(netsvc.Service):
self._init = True
self._init_parent = {}
netsvc.Service.__init__(self, 'object_proxy', audience='')
self.joinGroup('web-services')
self.exportMethod(self.obj_list)
self.exportMethod(self.exec_workflow)
self.exportMethod(self.execute)