assets.rb 398 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Group
  3. module Assets
  4. extend ActiveSupport::Concern
  5. def filter_unauthorized_attributes(attributes)
  6. return super if UserInfo.assets.blank? || UserInfo.assets.agent?
  7. attributes = super
  8. attributes.slice('id', 'name', 'follow_up_possible', 'reopen_time_in_days', 'active')
  9. end
  10. end
  11. end