diff --git a/CHANGES.rst b/CHANGES.rst index 4b1c44a..0505330 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 1.2.9 (unreleased) ------------------ -- Nothing changed yet. +- Remove customized rolemap and use default redturtle.prenotazioni rolemap. Booking manager should manage bookings without Editor role. + [cekk] 1.2.8 (2024-10-17) diff --git a/src/design/plone/ioprenoto/profiles/default/metadata.xml b/src/design/plone/ioprenoto/profiles/default/metadata.xml index 94f2ddb..c880a45 100644 --- a/src/design/plone/ioprenoto/profiles/default/metadata.xml +++ b/src/design/plone/ioprenoto/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 1001 + 1002 profile-redturtle.prenotazioni:default diff --git a/src/design/plone/ioprenoto/profiles/default/rolemap.xml b/src/design/plone/ioprenoto/profiles/default/rolemap.xml deleted file mode 100644 index 3fe2529..0000000 --- a/src/design/plone/ioprenoto/profiles/default/rolemap.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - diff --git a/src/design/plone/ioprenoto/upgrades/configure.zcml b/src/design/plone/ioprenoto/upgrades/configure.zcml index 8123f68..9dc6a5d 100644 --- a/src/design/plone/ioprenoto/upgrades/configure.zcml +++ b/src/design/plone/ioprenoto/upgrades/configure.zcml @@ -11,6 +11,13 @@ destination="1001" handler=".upgrades.to_1001" /> - + diff --git a/src/design/plone/ioprenoto/upgrades/upgrades.py b/src/design/plone/ioprenoto/upgrades/upgrades.py index eb08618..0efad44 100644 --- a/src/design/plone/ioprenoto/upgrades/upgrades.py +++ b/src/design/plone/ioprenoto/upgrades/upgrades.py @@ -54,3 +54,9 @@ def to_1001(context): folder.required_booking_fields = [ x for x in folder.required_booking_fields if x != "description" ] + + +def to_1002(context): + context.runImportStepFromProfile( + "profile-redturtle.prenotazioni:default", "rolemap", run_dependencies=True + )