Commit 48ea10b2 authored by iv's avatar iv

ERP5Workflow: security declarations on getDestinationValue and getSourceValue

parent e30ee4ad
......@@ -140,6 +140,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject,
return [parent._getOb(transition_id) for transition_id
in self.getAfterScriptIdList()]
security.declareProtected(Permissions.AccessContentsInformation,
'getDestinationValue')
def getDestinationValue(self):
"""
returns the destination object
......
......@@ -1212,6 +1212,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
for permission in permission_to_delete:
del state.state_permission_roles_dict[permission]
security.declareProtected(Permissions.AccessContentsInformation,
'getSourceValue')
def getSourceValue(self):
"""
returns the source object
......
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