connected.rb 334 B

123456789101112131415161718
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer
  3. class Unit
  4. module Zendesk
  5. class Connected < Sequencer::Unit::Common::Provider::Named
  6. uses :client
  7. private
  8. def connected
  9. client.current_user.id.present?
  10. end
  11. end
  12. end
  13. end
  14. end