Skip to content

Commit

Permalink
Merge branch 'master' into caseinsensitive_fiscalcode_search
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico authored Sep 25, 2023
2 parents 2313771 + c72c670 commit e25a832
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Changelog
fare ricerche case insensitive
[mamico]

- Remove Contributor from the package permissions map
[folix-01]


2.0.0 (2023-09-12)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>1802</version>
<version>1803</version>
<dependencies>
<dependency>profile-plone.app.dexterity:default</dependency>
<dependency>profile-collective.z3cform.datagridfield:default</dependency>
Expand Down
6 changes: 0 additions & 6 deletions src/redturtle/prenotazioni/profiles/default/rolemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,39 @@
<role name="Site Administrator"/>
<role name="Owner"/>
<role name="Bookings Manager" />
<role name="Contributor"/>
</permission>

<permission name="redturtle.prenotazioni: Add PrenotazioniDay" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>
<role name="Owner"/>
<role name="Contributor"/>
<role name="Bookings Manager" />
</permission>

<permission name="redturtle.prenotazioni: Add PrenotazioniWeek" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>
<role name="Owner"/>
<role name="Contributor"/>
<role name="Bookings Manager" />
</permission>

<permission name="redturtle.prenotazioni: Add PrenotazioniYear" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>
<role name="Owner"/>
<role name="Contributor"/>
<role name="Bookings Manager" />
</permission>

<permission name="redturtle.prenotazioni: Add PrenotazioniFolder" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>
<role name="Owner"/>
<role name="Contributor"/>
<role name="Bookings Manager" />
</permission>

<permission name="redturtle.prenotazioni: search prenotazioni" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>
<role name="Contributor"/>
<role name="Bookings Manager" />
</permission>

Expand Down
11 changes: 10 additions & 1 deletion src/redturtle/prenotazioni/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,14 @@
handler=".upgrades.update_booking_code"
/>
</genericsetup:upgradeSteps>

<genericsetup:upgradeSteps
profile="redturtle.prenotazioni:default"
source="1802"
destination="1803"
>
<genericsetup:upgradeStep
title="Remove Contributor from package permissions"
handler=".upgrades.update_rolemap"
/>
</genericsetup:upgradeSteps>
</configure>

0 comments on commit e25a832

Please sign in to comment.