From 4e6fd6cc44f502d2bad9b92d209888c29c754873 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Feb 2013 16:28:22 -0500 Subject: [PATCH] hide flag creator to non mods --- app/views/post_flags/index.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/post_flags/index.html.erb b/app/views/post_flags/index.html.erb index ecc2ffb94..c114f3b0c 100644 --- a/app/views/post_flags/index.html.erb +++ b/app/views/post_flags/index.html.erb @@ -14,7 +14,11 @@ <% @post_flags.each do |post_flag| %> <%= PostPresenter.preview(post_flag.post) %> - <%= link_to post_flag.creator.name, user_path(post_flag.creator) %> + + <% if CurrentUser.user.is_janitor? %> + <%= link_to post_flag.creator.name, user_path(post_flag.creator) %> + <% end %> + <%= format_text post_flag.reason %> <%= post_flag.is_resolved? %>