posts/show: only render detailed rejection dialog for approvers.
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
<% if CurrentUser.can_approve_posts? && !post.disapproved_by?(CurrentUser.user) %>
|
<% if CurrentUser.can_approve_posts? && !post.disapproved_by?(CurrentUser.user) %>
|
||||||
<%= render "moderator/post/queues/quick_mod", post: post %>
|
<%= render "moderator/post/queues/quick_mod", post: post %>
|
||||||
|
<%= render "post_disapprovals/detailed_rejection_dialog" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -73,5 +74,3 @@
|
|||||||
<span style="display: none;">Loading...</span>
|
<span style="display: none;">Loading...</span>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "post_disapprovals/detailed_rejection_dialog" %>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user