Commit 639f4977 authored by Jérome Perrin's avatar Jérome Perrin

document updateRoleMappingsFor: the caller must check that workflow is chained

to the portal type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fac9d756
......@@ -3115,6 +3115,9 @@ class Base( CopyContainer,
def updateRoleMappingsFor(self, wf_id, **kw):
"""
Update security policy according to workflow settings given by wf_id
There's no check that the document is actually chained to the workflow,
it's caller responsability to perform this check.
"""
workflow = self.portal_workflow.getWorkflowById(wf_id)
if workflow is not None:
......
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