diff --git a/news/URB-3131.bugfix b/news/URB-3131.bugfix new file mode 100644 index 000000000..52ac8d1cd --- /dev/null +++ b/news/URB-3131.bugfix @@ -0,0 +1,2 @@ +Give dynamic group reader roles for obsolete licences +[daggelpop] \ No newline at end of file diff --git a/src/Products/urban/workflows/codt_licence_workflow.py b/src/Products/urban/workflows/codt_licence_workflow.py index a1d766a80..a5a230aac 100644 --- a/src/Products/urban/workflows/codt_licence_workflow.py +++ b/src/Products/urban/workflows/codt_licence_workflow.py @@ -58,4 +58,9 @@ class StateRolesMapping(BaseRoleMapping): BaseRoleMapping.get_readers: ("Reader",), BaseRoleMapping.get_editors: ("Reader", "Reviewer"), }, + "obsolete": { + BaseRoleMapping.get_readers: ("Reader",), + BaseRoleMapping.get_editors: ("Reader", "Reviewer"), + BaseRoleMapping.get_opinion_editors: ("Reader",), + }, }