Commit bc87de82 authored by Sebastien Robin's avatar Sebastien Robin

change security settings


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3056 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5eb22234
...@@ -833,10 +833,10 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -833,10 +833,10 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
if result not in (None,''): if result not in (None,''):
#if gpg_key not in ('',None): #if gpg_key not in ('',None):
# result = self.sendResponse(domain=domain,xml=result,send=0) # result = self.sendResponse(domain=domain,xml=result,send=0)
uf = self.acl_users #uf = self.acl_users
#user = UnrestrictedUser('syncml','syncml',['Manager','Member'],'') #user = UnrestrictedUser('syncml','syncml',['Manager','Member'],'')
user = uf.getUserById('syncml').__of__(uf) #user = uf.getUserById('syncml').__of__(uf)
newSecurityManager(None, user) #newSecurityManager(None, user)
#self.activate(activity='RAMQueue').readResponse(sync_id=sync_id,text=result) #self.activate(activity='RAMQueue').readResponse(sync_id=sync_id,text=result)
self.readResponse(sync_id=sync_id,text=result) self.readResponse(sync_id=sync_id,text=result)
...@@ -847,8 +847,8 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -847,8 +847,8 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
""" """
# Login as a manager to make sure we can create objects # Login as a manager to make sure we can create objects
uf = self.acl_users uf = self.acl_users
#user = UnrestrictedUser('syncml','syncml',['Manager','Member'],'') user = UnrestrictedUser('syncml','syncml',['Manager','Member'],'')
user = uf.getUserById('syncml').__of__(uf) #user = uf.getUserById('syncml').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
message_list = self.portal_activities.getMessageList() message_list = self.portal_activities.getMessageList()
LOG('sync, message_list:',0,message_list) LOG('sync, message_list:',0,message_list)
...@@ -870,6 +870,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -870,6 +870,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
# Login as a manager to make sure we can create objects # Login as a manager to make sure we can create objects
uf = self.acl_users uf = self.acl_users
user = uf.getUserById('syncml').__of__(uf) user = uf.getUserById('syncml').__of__(uf)
user = UnrestrictedUser('syncml','syncml',['Manager','Member'],'')
newSecurityManager(None, user) newSecurityManager(None, user)
if text is not None: if text is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment