[CMF-checkins] CVS: CMF/CMFDefault - DefaultWorkflow.py:1.18
Florent Guillaume
fg@nuxeo.com
Fri, 14 Mar 2003 11:49:14 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv26790/CMFDefault
Modified Files:
DefaultWorkflow.py
Log Message:
Protected the Pending review action in DefaultWorkflow by
ReviewPortalContent (Collector #52).
=== CMF/CMFDefault/DefaultWorkflow.py 1.17 => 1.18 ===
--- CMF/CMFDefault/DefaultWorkflow.py:1.17 Thu Feb 13 03:35:28 2003
+++ CMF/CMFDefault/DefaultWorkflow.py Fri Mar 14 11:49:13 2003
@@ -26,6 +26,7 @@
from Products.CMFCore.utils import SimpleItemWithProperties
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFCore.WorkflowTool import addWorkflowClass
+from Products.CMFCore.CMFCorePermissions.py import ReviewPortalContent
from Products.CMFCore.interfaces.portal_workflow \
import WorkflowDefinition as IWorkflowDefinition
@@ -154,7 +155,7 @@
{'name': 'Pending review (%d)' % pending,
'url': info.portal_url +
'/search?review_state=pending',
- 'permissions': (),
+ 'permissions': (ReviewPortalContent, ),
'category': 'global'}
)
return actions