#180 Added 'View comments' permission

This commit is contained in:
Miu Razvan 2022-02-17 16:37:38 +02:00
parent a790ad0bc5
commit d6bfa9eebd
3 changed files with 9 additions and 1 deletions

View File

@ -117,7 +117,7 @@
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
view="plone.app.layout.globals.interfaces.IViewView"
class=".comments.CommentsViewlet"
permission="zope2.View"
permission="plone.app.discussion.ViewComments"
/>
<!-- Conversation view -->

View File

@ -4,6 +4,11 @@
<!-- custom permissions are defined here -->
<permission
id="plone.app.discussion.ViewComments"
title="View comments"
/>
<permission
id="plone.app.discussion.ReviewComments"
title="Review comments"

View File

@ -1,6 +1,9 @@
<?xml version="1.0"?>
<rolemap>
<permissions>
<permission name="View comments" acquire="True">
<role name="Anonymous"/>
</permission>
<permission name="Review comments" acquire="True">
<role name="Manager"/>
<role name="Site Administrator"/>