zammad/lib/session_helper/collection_object_manager_attribute.rb
2026-01-02 15:41:09 +02:00

14 lines
391 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
module SessionHelper::CollectionObjectManagerAttribute
module_function
def session(collections, assets, user)
return [collections, assets] if !user.permissions?('admin.*')
collections[ ObjectManager::Attribute.to_app_model ] = ObjectManager::Attribute.list_full
[collections, assets]
end
end