Commit af322a35 authored by Sebastien Robin's avatar Sebastien Robin

ERP5Workflow: fix security declarations

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