# HG changeset patch # User souliane # Date 1393004687 -3600 # Node ID 39ae5bf927862d871ac6591d601dfd255c0def4d # Parent a74a2dfbe4f59727c959549078455ba602981252 browser_side: allow one blogger to moderate the comments made on his own blog messages. diff -r a74a2dfbe4f5 -r 39ae5bf92786 browser_side/panels.py --- 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")