assets.rb 353 B

1234567891011121314
  1. # Copyright (C) 2012-2022 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', 'active')
  9. end
  10. end
  11. end