pundit: convert bulk update requests to pundit.

This commit is contained in:
evazion
2020-03-17 18:32:29 -05:00
parent b83c612246
commit 79a365abe0
6 changed files with 76 additions and 73 deletions

View File

@@ -38,7 +38,7 @@
</div>
<% end %>
<% if @bulk_update_request.persisted? && CurrentUser.is_admin? %>
<% if @bulk_update_request.persisted? && policy(@bulk_update_request).can_update_forum? %>
<%= f.input :forum_topic_id %>
<%= f.input :forum_post_id %>
<% end %>