changeset 366:39ae5bf92786

browser_side: allow one blogger to moderate the comments made on his own blog messages.
author souliane <souliane@mailoo.org>
date Fri, 21 Feb 2014 18:44:47 +0100
parents a74a2dfbe4f5
children 764c32ecb754
files browser_side/panels.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Thu Feb 20 19:33:31 2014 +0100
+++ b/browser_side/panels.py	Fri Feb 21 18:44:47 2014 +0100
@@ -452,8 +452,10 @@
             self.entry_actions.add(label)
             return label
 
-        if self.author == self._blog_panel.host.whoami.bare:
+        is_publisher = self.author == self._blog_panel.host.whoami.bare
+        if is_publisher or str(self.node).endswith(self._blog_panel.host.whoami.bare):
             self.delete_label = addIcon(u"✗", "Delete this message")
+        if is_publisher:
             self.update_label = addIcon(u"✍", "Edit this message")
         if self.comments:
             self.comment_label = addIcon(u"↶", "Comment this message")