hide flag creator to non mods

This commit is contained in:
albert
2013-02-21 16:28:22 -05:00
parent d16a240eda
commit 4e6fd6cc44

View File

@@ -14,7 +14,11 @@
<% @post_flags.each do |post_flag| %>
<tr>
<td><%= PostPresenter.preview(post_flag.post) %></td>
<td><%= link_to post_flag.creator.name, user_path(post_flag.creator) %></td>
<td>
<% if CurrentUser.user.is_janitor? %>
<%= link_to post_flag.creator.name, user_path(post_flag.creator) %>
<% end %>
</td>
<td><%= format_text post_flag.reason %></td>
<td><%= post_flag.is_resolved? %></td>
</tr>