module Ads
  class RevenueConfigPolicy < ApplicationPolicy
    def create?
      allowed?
    end

    def new?
      allowed?
    end

    def new_bulk?
      allowed?
    end

    def create_bulk?
      allowed?
    end

    def destroy?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:ad_revenue_configs)
    end
  end
end
