pundit: convert post approvals to pundit.
This commit is contained in:
5
app/policies/post_approval_policy.rb
Normal file
5
app/policies/post_approval_policy.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class PostApprovalPolicy < ApplicationPolicy
|
||||
def create?
|
||||
user.is_approver?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user