Commit 4844780d authored by Nicolas Delaby's avatar Nicolas Delaby

Add method to update workflow security

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15481 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7324918
......@@ -2617,6 +2617,16 @@ class Base( CopyContainer,
DeprecationWarning)
self.updateLocalRolesOnSecurityGroups(**kw)
security.declareProtected(Permissions.ManagePortal,
'updateRoleMappingsFor')
def updateRoleMappingsFor(self, wf_id,**kw):
"""
Update security policy according to workflow settings given by wf_id
"""
workflow = self.portal_workflow.getWorkflowById(wf_id)
if workflow is not None:
workflow.updateRoleMappingsFor(self)
# Template Management
security.declareProtected(Permissions.View, 'getDocumentTemplateList')
def getDocumentTemplateList(self) :
......
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