pundit: convert post appeals to pundit.
This commit is contained in:
5
app/policies/post_appeal_policy.rb
Normal file
5
app/policies/post_appeal_policy.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class PostAppealPolicy < ApplicationPolicy
|
||||
def permitted_attributes
|
||||
[:post_id, :reason]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user