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

    def transactions_for_user?
      allowed?
    end

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