From 654d40875f09766c6be305dcfaaf4ee269a25ab5 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 26 Sep 2018 20:46:22 -0500 Subject: [PATCH] posts/show: only render detailed rejection dialog for approvers. --- app/views/posts/partials/show/_notices.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index 86b9f795d..343a1d481 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -42,6 +42,7 @@ <% if CurrentUser.can_approve_posts? && !post.disapproved_by?(CurrentUser.user) %> <%= render "moderator/post/queues/quick_mod", post: post %> + <%= render "post_disapprovals/detailed_rejection_dialog" %> <% end %> <% end %> @@ -73,5 +74,3 @@ Loading... <% end %> - -<%= render "post_disapprovals/detailed_rejection_dialog" %>