module Payments
  class XsollaPlanPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def new?
      allowed?
    end

    def create?
      allowed?
    end

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