Grant Site Administrators the same workflow permissions as Managers.

They were missing permissions on pending comments.
Fixes https://github.com/plone/plone.app.discussion/issues/199
This commit is contained in:
Maurits van Rees 2022-05-10 16:49:55 +02:00
parent 37dc258051
commit 245a2d9be3
No known key found for this signature in database
GPG Key ID: AAEC1E5318E6FCCE
4 changed files with 15 additions and 2 deletions

3
news/199.bugfix Normal file
View File

@ -0,0 +1,3 @@
Grant Site Administrators the same workflow permissions as Managers.
They were missing permissions on pending comments.
[maurits]

View File

@ -1,5 +1,5 @@
<metadata> <metadata>
<version>1004</version> <version>1005</version>
<dependencies> <dependencies>
<dependency>profile-plone.resource:default</dependency> <dependency>profile-plone.resource:default</dependency>
<dependency>profile-plone.app.registry:default</dependency> <dependency>profile-plone.app.registry:default</dependency>

View File

@ -20,11 +20,13 @@
<permission-role>Manager</permission-role> <permission-role>Manager</permission-role>
<permission-role>Owner</permission-role> <permission-role>Owner</permission-role>
<permission-role>Reviewer</permission-role> <permission-role>Reviewer</permission-role>
<permission-role>Site Administrator</permission-role>
</permission-map> </permission-map>
<permission-map name="Modify portal content" acquired="False"> <permission-map name="Modify portal content" acquired="False">
<permission-role>Manager</permission-role> <permission-role>Manager</permission-role>
<permission-role>Owner</permission-role> <permission-role>Owner</permission-role>
<permission-role>Reviewer</permission-role> <permission-role>Reviewer</permission-role>
<permission-role>Site Administrator</permission-role>
</permission-map> </permission-map>
<permission-map name="Reply to item" acquired="False"> <permission-map name="Reply to item" acquired="False">
</permission-map> </permission-map>
@ -32,6 +34,7 @@
<permission-role>Manager</permission-role> <permission-role>Manager</permission-role>
<permission-role>Owner</permission-role> <permission-role>Owner</permission-role>
<permission-role>Reviewer</permission-role> <permission-role>Reviewer</permission-role>
<permission-role>Site Administrator</permission-role>
</permission-map> </permission-map>
</state> </state>
<state state_id="published" title="Published"> <state state_id="published" title="Published">
@ -43,6 +46,7 @@
</permission-map> </permission-map>
<permission-map name="Modify portal content" acquired="False"> <permission-map name="Modify portal content" acquired="False">
<permission-role>Manager</permission-role> <permission-role>Manager</permission-role>
<permission-role>Site Administrator</permission-role>
</permission-map> </permission-map>
<permission-map name="Reply to item" acquired="True"> <permission-map name="Reply to item" acquired="True">
</permission-map> </permission-map>

View File

@ -87,6 +87,12 @@
title="Add 'View comments' permission" title="Add 'View comments' permission"
import_steps="rolemap" /> import_steps="rolemap" />
<genericsetup:upgradeStep
source="1004"
destination="1005"
profile="plone.app.discussion:default"
title="Grant Site Administrator permissions on pending comments"
handler=".upgrades.upgrade_comment_workflows"
/>
</configure> </configure>