diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py index 9ccfa0a8a26dec43e310bb1f814f1084ddc29e77..9383ee846791c91edf14cc232f82e1a0c54c48df 100644 --- a/product/ERP5Type/ZopePatch.py +++ b/product/ERP5Type/ZopePatch.py @@ -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 diff --git a/product/ERP5Type/patches/Worklists.py b/product/ERP5Type/patches/Worklists.py new file mode 100644 index 0000000000000000000000000000000000000000..9aa6e77532f34b776f90608f567f799d3f4bd509 --- /dev/null +++ b/product/ERP5Type/patches/Worklists.py @@ -0,0 +1,8 @@ +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)