Skip to content

Commit

Permalink
update rolemap
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed Jun 3, 2024
1 parent f748694 commit 65167a0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
2.7.2 (unreleased)
------------------

- Nothing changed yet.
- Hotfix missing permission.
[folix-01]


2.7.1 (2024-05-31)
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>2010</version>
<version>2011</version>
<dependencies>
<dependency>profile-plone.app.dexterity:default</dependency>
<dependency>profile-collective.z3cform.datagridfield:default</dependency>
Expand Down
8 changes: 7 additions & 1 deletion src/redturtle/prenotazioni/profiles/default/rolemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@

<permission acquire="True"
name="CMFEditions: Save new version">
<role name="Bookings Manager" />
<role name="Bookings Manager" />
<role name="Manager" />
<role name="Site Administrator" />
<role name="Owner" />
<role name="Editor" />
<role name="Reviewer" />
<role name="Contributor" />
</permission>

</permissions>
Expand Down
11 changes: 11 additions & 0 deletions src/redturtle/prenotazioni/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,16 @@
handler=".upgrades.to_2010"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
profile="redturtle.prenotazioni:default"
source="2010"
destination="2011"
>
<genericsetup:upgradeStep
title="Update rolemap"
handler=".upgrades.update_rolemap"
/>
</genericsetup:upgradeSteps>


</configure>

0 comments on commit 65167a0

Please sign in to comment.