[Erp5-report] r15481 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 6 10:19:50 CEST 2007
Author: nicolas
Date: Mon Aug 6 10:19:49 2007
New Revision: 15481
URL: http://svn.erp5.org?rev=15481&view=rev
Log:
Add method to update workflow security
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=15481&r1=15480&r2=15481&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Mon Aug 6 10:19:49 2007
@@ -2617,6 +2617,16 @@
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) :
More information about the Erp5-report
mailing list