From a7b3c818f26c80f414eb5a05844d2b54b5eadf6e Mon Sep 17 00:00:00 2001 From: Gaudenz Steinlin Date: Mon, 7 May 2012 13:02:07 +0200 Subject: [PATCH 001/119] Delete own comments Add permission to allow comment authors to delete their own comments if there are no replies yet. --- CHANGES.txt | 8 +++++ plone/app/discussion/browser/comments.pt | 13 ++++++++ plone/app/discussion/browser/comments.py | 24 +++++++++++++- plone/app/discussion/browser/configure.zcml | 10 +++++- .../browser/javascripts/comments.js | 3 ++ plone/app/discussion/browser/moderation.py | 31 +++++++++++++++++++ plone/app/discussion/permissions.zcml | 5 +++ .../discussion/profiles/default/rolemap.xml | 6 ++++ 8 files changed, 98 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index bb27a70..33f7280 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,9 +3,17 @@ Changelog 2.1.6 (unreleased) ------------------ +- Add permission to allow comment authors to delete their own comments if + there are no replies yet. + [gaudenz] + - Add Site Administrator role to Review comments permission. [gaudenz] +- Add permission to allow comment authors to delete their own comments if + there are no replies yet. + [gaudenz] + - Fix excessive JS comment deletion. [gaudenz] diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index ac38d1a..fbc95eb 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -83,6 +83,19 @@
+
+ +