Merge pull request #200 from plone/maurits-site-administrators-master

Grant Site Administrators same workflow permissions as Managers [master]
This commit is contained in:
Jens W. Klein 2022-05-11 01:51:34 +02:00 committed by GitHub
commit 0439e9ea24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 15 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>
<version>1004</version>
<version>2000</version>
<dependencies>
<dependency>profile-plone.resource:default</dependency>
<dependency>profile-plone.app.registry:default</dependency>

View File

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

View File

@ -73,20 +73,19 @@
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1999"
destination="2000"
profile="plone.app.discussion:default">
<genericsetup:upgradeDepends
source="1002"
destination="1003"
profile="plone.app.discussion:default"
title="Update controlpanel icon"
import_steps="controlpanel" />
<genericsetup:upgradeDepends
source="1003"
destination="1004"
profile="plone.app.discussion:default"
title="Add 'View comments' permission"
import_steps="rolemap" />
<genericsetup:upgradeStep
title="Grant Site Administrator permissions on pending comments"
handler=".upgrades.upgrade_comment_workflows" />
</genericsetup:upgradeSteps>
</configure>