pundit: convert post approvals to pundit.

This commit is contained in:
evazion
2020-03-20 18:03:01 -05:00
parent cbee23f9ad
commit 84c654464d
3 changed files with 16 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
class PostApprovalPolicy < ApplicationPolicy
def create?
user.is_approver?
end
end