diff --git a/CHANGES.rst b/CHANGES.rst index 9716db36..3ef22660 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,9 @@ Changelog 2.1.7 (unreleased) ------------------ -- Nothing changed yet. +- Add missing upgrde steps for rolemap + Fix permission checking creating a booking + [lucabel] 2.1.6 (2023-11-13) diff --git a/src/redturtle/prenotazioni/profiles/default/metadata.xml b/src/redturtle/prenotazioni/profiles/default/metadata.xml index b0ea2fda..0d57cafc 100644 --- a/src/redturtle/prenotazioni/profiles/default/metadata.xml +++ b/src/redturtle/prenotazioni/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 1806 + 1807 profile-plone.app.dexterity:default profile-collective.z3cform.datagridfield:default diff --git a/src/redturtle/prenotazioni/restapi/services/booking/add.py b/src/redturtle/prenotazioni/restapi/services/booking/add.py index 4a703f95..c02fcf62 100644 --- a/src/redturtle/prenotazioni/restapi/services/booking/add.py +++ b/src/redturtle/prenotazioni/restapi/services/booking/add.py @@ -75,7 +75,7 @@ def validate(self): if data["booking_type"] in [VACATION_TYPE]: if not api.user.has_permission( - "redturtle.prenotazioni.ManagePrenotazioni", obj=self.context + "redturtle.prenotazioni: Manage Prenotazioni", obj=self.context ): msg = self.context.translate( _( diff --git a/src/redturtle/prenotazioni/upgrades.zcml b/src/redturtle/prenotazioni/upgrades.zcml index 8a5cf53d..25e7eace 100644 --- a/src/redturtle/prenotazioni/upgrades.zcml +++ b/src/redturtle/prenotazioni/upgrades.zcml @@ -220,4 +220,15 @@ handler=".upgrades.update_rolemap" /> + + + +