collection_object_manager_attribute.rb 391 B

1234567891011121314
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. module SessionHelper::CollectionObjectManagerAttribute
  3. module_function
  4. def session(collections, assets, user)
  5. return [collections, assets] if !user.permissions?('admin.*')
  6. collections[ ObjectManager::Attribute.to_app_model ] = ObjectManager::Attribute.list_full
  7. [collections, assets]
  8. end
  9. end