Commit 390c50b4 authored by Sebastien Robin's avatar Sebastien Robin

do not use UnrestrictedUser


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1864 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2988a3bd
...@@ -827,7 +827,8 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -827,7 +827,8 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
#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)
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)
...@@ -839,7 +840,8 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -839,7 +840,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)
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)
...@@ -860,7 +862,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -860,7 +862,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
#LOG('readResponse, text:',0,text) #LOG('readResponse, text:',0,text)
# 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 = uf.getUserById('syncml').__of__(uf)
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