Commit 01eb6577 authored by Nicolas Delaby's avatar Nicolas Delaby

Allow manager to rename Worklists

(This monkey patch will be under review by DCWorkflow maintainers)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7a60b6a4
......@@ -28,6 +28,7 @@ from Products.ERP5Type.patches import PropertyManager
from Products.ERP5Type.patches import TM
from Products.ERP5Type.patches import DA
from Products.ERP5Type.patches import DCWorkflow
from Products.ERP5Type.patches import Worklists
from Products.ERP5Type.patches import BTreeFolder2
from Products.ERP5Type.patches import WorkflowTool
from Products.ERP5Type.patches import XMLExportImport
......
from Products.DCWorkflow.Worklists import Worklists
from Products.DCWorkflow.Worklists import WorklistDefinition
from Products.ERP5Type.Permissions import ManagePortal
# Allow manager to rename worklists
for meta_type in Worklists.all_meta_types:
if meta_type['name'] == WorklistDefinition.meta_type:
meta_type.setdefault('permission', ManagePortal)
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