user_factory.rb 371 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Import
  3. module OTRS
  4. module UserFactory
  5. extend Import::Factory
  6. # rubocop:disable Style/ModuleFunction
  7. extend self
  8. # skip root@localhost since we have our own \o/
  9. def skip?(record, *_args)
  10. record['UserID'].to_i == 1
  11. end
  12. end
  13. end
  14. end