From b80097576c4a1c834d4326d56eb20177997638ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Demont=C3=A9?= Date: Mon, 1 Jul 2024 10:19:09 +0200 Subject: [PATCH] URB-3131: Give dynamic group reader roles for obsolete licences --- news/URB-3131.bugfix | 2 ++ src/Products/urban/workflows/codt_licence_workflow.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 news/URB-3131.bugfix 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",), + }, }