Merge pull request #191 from plone/180_view_permissions
#180 Added 'View comments' permission
This commit is contained in:
commit
a86db1b8c2
1
news/180.feature
Normal file
1
news/180.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Added 'View comments' permission. [@razvanMiu]
|
@ -117,7 +117,7 @@
|
|||||||
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
|
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
|
||||||
view="plone.app.layout.globals.interfaces.IViewView"
|
view="plone.app.layout.globals.interfaces.IViewView"
|
||||||
class=".comments.CommentsViewlet"
|
class=".comments.CommentsViewlet"
|
||||||
permission="zope2.View"
|
permission="plone.app.discussion.ViewComments"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Conversation view -->
|
<!-- Conversation view -->
|
||||||
|
@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
<!-- custom permissions are defined here -->
|
<!-- custom permissions are defined here -->
|
||||||
|
|
||||||
|
<permission
|
||||||
|
id="plone.app.discussion.ViewComments"
|
||||||
|
title="View comments"
|
||||||
|
/>
|
||||||
|
|
||||||
<permission
|
<permission
|
||||||
id="plone.app.discussion.ReviewComments"
|
id="plone.app.discussion.ReviewComments"
|
||||||
title="Review comments"
|
title="Review comments"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<version>1003</version>
|
<version>1004</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>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<rolemap>
|
<rolemap>
|
||||||
<permissions>
|
<permissions>
|
||||||
|
<permission name="View comments" acquire="True">
|
||||||
|
<role name="Anonymous"/>
|
||||||
|
</permission>
|
||||||
<permission name="Review comments" acquire="True">
|
<permission name="Review comments" acquire="True">
|
||||||
<role name="Manager"/>
|
<role name="Manager"/>
|
||||||
<role name="Site Administrator"/>
|
<role name="Site Administrator"/>
|
||||||
|
@ -80,6 +80,13 @@
|
|||||||
title="Update controlpanel icon"
|
title="Update controlpanel icon"
|
||||||
import_steps="controlpanel" />
|
import_steps="controlpanel" />
|
||||||
|
|
||||||
|
<genericsetup:upgradeDepends
|
||||||
|
source="1003"
|
||||||
|
destination="1004"
|
||||||
|
profile="plone.app.discussion:default"
|
||||||
|
title="Add 'View comments' permission"
|
||||||
|
import_steps="rolemap" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</configure>
|
</configure>
|
||||||
|
Loading…
Reference in New Issue
Block a user