Only allow 'block user' from PMs

This commit is contained in:
Keith Mitchell
2011-07-06 14:14:51 -07:00
parent 3fb84ad3ef
commit b7df2c3d4c

View File

@@ -302,7 +302,7 @@
%endif
%if thing.recipient:
${self.banbuttons()}
%if thing.thing.author_id != c.user._id and thing.thing.author_id not in c.user.enemies:
%if not thing.was_comment and thing.thing.author_id != c.user._id and thing.thing.author_id not in c.user.enemies:
<li>
${ynbutton(_("block user"), _("blocked"), "block", "hide_thing")}
</li>