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

This commit is contained in:
BrokenEagle
2017-11-07 20:02:03 -08:00
parent af7c109912
commit 5b4ab8d80e
8 changed files with 52 additions and 8 deletions

View File

@@ -39,7 +39,7 @@
</td>
<td>
<%= compact_time post_flag.created_at %>
<% if CurrentUser.can_view_flagger?(post_flag.creator_id) %>
<% if CurrentUser.can_view_flagger_on_post?(post_flag) %>
<br> by <%= link_to_user post_flag.creator %>
<%= link_to "»", post_flags_path(search: params[:search].merge(creator_name: post_flag.creator.name)) %>
<% end %>