| <%= event.type_name %> |
- <% if CurrentUser.is_moderator? %>
-
+ |
+ <% if event.is_creator_visible? %>
<%= link_to_user event.creator %>
- |
- <% end %>
+ <% else %>
+ hidden
+ <% end %>
+
<%= format_text event.reason, :ragel => true %> |
<% if event.is_resolved %>
diff --git a/app/views/post_flags/index.html.erb b/app/views/post_flags/index.html.erb
index 4259117e2..3cb77c545 100644
--- a/app/views/post_flags/index.html.erb
+++ b/app/views/post_flags/index.html.erb
@@ -39,7 +39,7 @@
|
<%= compact_time post_flag.created_at %>
- <% if CurrentUser.user.is_moderator? %>
+ <% if CurrentUser.can_view_flagger?(post_flag.creator_id) %>
by <%= link_to_user post_flag.creator %>
<%= link_to "ยป", post_flags_path(search: params[:search].merge(creator_name: post_flag.creator.name)) %>
<% end %>
|