docbrown/app/policies/stripe_subscription_policy.rb
Andy Zhao beac877e44 Add stripe policies and specs (#529)
* Add stripe policies and specs, and some refactor

* Update moderation test to test for 404
2018-07-02 17:19:25 -04:00

13 lines
169 B
Ruby

class StripeSubscriptionPolicy < ApplicationPolicy
def create?
!user_is_banned?
end
def update?
!user_is_banned?
end
def destroy?
true
end
end