Disallow a user from seeing flagger's name on own uploads

This commit is contained in:
BrokenEagle
2017-11-08 00:37:16 -08:00
parent af7c109912
commit 5b4ab8d80e
8 changed files with 52 additions and 8 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ module PostFlagsHelper
html << '<li>'
html << format_text(flag.reason, inline: true)
if CurrentUser.can_view_flagger?(flag.creator_id)
if CurrentUser.can_view_flagger_on_post?(flag)
html << " - #{link_to_user(flag.creator)}"
if CurrentUser.is_moderator?
html << " (#{link_to_ip(flag.creator_ip_addr)})"