module Chronobreak
  class TenurePolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def delete_grant?
      allowed?
    end

    def preview_tenure?
      allowed?
    end

    def upsert_grant?
      allowed?
    end

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