comment policy and test updates
This commit is contained in:
@ -46,7 +46,7 @@
|
||||
<div class="review-comments">
|
||||
<h2 class="prft-heading">Comments</h2>
|
||||
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>
|
||||
<% if policy(QuizComment).create? %>
|
||||
<% if policy(QuizComment).new? %>
|
||||
<%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user