Commit c4a34106 authored by Sebastien Robin's avatar Sebastien Robin

ERP5Workflow: fix security declarations

parent 06be4038
......@@ -336,7 +336,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
return DCWorkflowDefinition._checkTransitionGuard(self, t, ob, **kw)
security.declarePrivate('getReference')
security.declareProtected(Permissions.AccessContentsInformation, 'getReference')
def getReference(self):
return self.id
......@@ -358,7 +358,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
return self.interactions.objectIds()
return []
security.declarePrivate('getPortalType')
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalType')
def getPortalType(self):
return self.__class__.__name__
......
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