Disallow a user from seeing flagger's name on own uploads
This commit is contained in:
@@ -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)})"
|
||||
|
||||
Reference in New Issue
Block a user