Commit 1e22fa09 authored by iv's avatar iv

ERP5Workflow: add security declarations on getTransitions

parent 0bcbe369
...@@ -128,6 +128,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr ...@@ -128,6 +128,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, CustomStorageMatr
return [parent._getOb(destination_id) for destination_id in return [parent._getOb(destination_id) for destination_id in
self.getDestinationIdList()] self.getDestinationIdList()]
security.declareProtected(Permissions.AccessContentsInformation,
'getTransitions')
getTransitions = getDestinationIdList getTransitions = getDestinationIdList
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
......
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