fixes #2490: Creator visible in "Flags & Appeals" for all users
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">Type</th>
|
||||
<th width="10%">Creator</th>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<th width="10%">Creator</th>
|
||||
<% end %>
|
||||
<th>Reason</th>
|
||||
<th width="5%">Resolved?</th>
|
||||
<th width="15%">Date</th>
|
||||
@@ -16,7 +18,11 @@
|
||||
<% @events.each do |event| %>
|
||||
<tr class="resolved-<%= event.is_resolved %>">
|
||||
<td><%= event.type_name %></td>
|
||||
<td><%= link_to_user event.creator %></td>
|
||||
<td>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<%= link_to_user event.creator %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= format_text event.reason %></td>
|
||||
<td>
|
||||
<% if event.is_resolved %>
|
||||
|
||||
Reference in New Issue
Block a user