Commit f44011bf authored by Nicolas Delaby's avatar Nicolas Delaby

Call reindex after security update

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