Delete own comments

Add permission to allow comment authors to delete their own comments if
there are no replies yet.
This commit is contained in:
Gaudenz Steinlin
2012-05-29 13:33:46 +02:00
parent 3eab51e1c4
commit a7b3c818f2
8 changed files with 98 additions and 2 deletions
+9 -1
View File
@@ -71,7 +71,7 @@
permission="zope2.View"
/>
<!-- Delete comment view -->
<!-- Delete comment views -->
<browser:page
for="plone.app.discussion.interfaces.IComment"
name="moderate-delete-comment"
@@ -80,6 +80,14 @@
permission="plone.app.discussion.ReviewComments"
/>
<browser:page
for="plone.app.discussion.interfaces.IComment"
name="delete-own-comment"
layer="..interfaces.IDiscussionLayer"
class=".moderation.DeleteOwnComment"
permission="plone.app.discussion.DeleteOwnComments"
/>
<!-- Publish comment view -->
<browser:page
for="plone.app.discussion.interfaces.IComment"