Skip to content

Commit

Permalink
Only allow 'block user' from PMs
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitche committed Jul 7, 2011
1 parent 3fb84ad commit b7df2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/templates/printablebuttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b7df2c3

Please sign in to comment.