From 4b0a3bbd6428759719df73a090674365c000101d Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 4 Feb 2004 14:13:25 +0000 Subject: [PATCH] fix 2 security settings git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@388 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/SynchronizationTool.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/product/ERP5SyncML/SynchronizationTool.py b/product/ERP5SyncML/SynchronizationTool.py index 853db99205..2b0c641cd3 100755 --- a/product/ERP5SyncML/SynchronizationTool.py +++ b/product/ERP5SyncML/SynchronizationTool.py @@ -279,7 +279,7 @@ class SynchronizationTool( UniqueObject, SimpleItem, return None - security.declareProtected(Permissions.AccessContentsInformation,'') + security.declareProtected(Permissions.AccessContentsInformation,'getSynchronizationList') def getSynchronizationList(self): """ Returns the list of subscriptions and publications @@ -287,7 +287,7 @@ class SynchronizationTool( UniqueObject, SimpleItem, """ return self.getSubscriptionList() + self.getPublicationList() - security.declareProtected(Permissions.AccessContentsInformation,'') + security.declareProtected(Permissions.AccessContentsInformation,'getSubscriberList') def getSubscriberList(self): """ Returns the list of subscribers and subscriptions @@ -402,10 +402,11 @@ class SynchronizationTool( UniqueObject, SimpleItem, object = self.unrestrictedTraverse(conflict.getObjectPath()) subscriber = conflict.getSubscriber() # get the signature: - LOG('p_sync.setLocalObject, subscriber: ',0,subscriber) + LOG('p_sync.applyPublisherValue, subscriber: ',0,subscriber) signature = subscriber.getSignature(object.getId()) # XXX may be change for rid signature.delConflict(conflict) if signature.getConflictList() == []: + LOG('p_sync.applyPublisherValue, conflict_list empty on : ',0,signature) signature.setStatus(self.PUB_CONFLICT_MERGE) security.declareProtected(Permissions.ModifyPortalContent, 'applyPublisherDocument') @@ -414,8 +415,10 @@ class SynchronizationTool( UniqueObject, SimpleItem, apply the publisher value for all conflict of the given document """ subscriber = conflict.getSubscriber() + LOG('applyPublisherDocument, subscriber: ',0,subscriber) for c in self.getConflictList(conflict.getObjectPath()): if c.getSubscriber() == subscriber: + LOG('applyPublisherDocument, applying on conflict: ',0,conflict) c.applyPublisherValue() security.declareProtected(Permissions.ModifyPortalContent, 'applySubscriberDocument') -- 2.30.9