Commit 16ab007c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! ERP5Workflow: DC Workflows are now ERP5 objects (!1378).

if acquire_permission is not yet set in a Workflow State, we should consider it as 'acquire all permissions', like DCWorkflow implementation.
parent 9d3a3fc6
......@@ -95,6 +95,17 @@ class WorkflowState(IdAsReferenceMixin("state_"),
return [parent._getOb(destination_id) for destination_id in
self.getDestinationIdList()]
security.declareProtected(Permissions.AccessContentsInformation,
'getAcquirePermissionList')
def getAcquirePermissionList(self):
"""
acquire all permissions if not yet configured, like DCWorkflow
"""
if not self.state_permission_role_list_dict:
return self.getWorkflowManagedPermissionList()
else:
return self._baseGetAcquirePermissionList()
security.declareProtected(Permissions.ModifyPortalContent,
'setStatePermissionRoleListDict')
def setStatePermissionRoleListDict(self, permission_roles):
......
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