15 lines
391 B
Ruby
15 lines
391 B
Ruby
|
# Copyright (C) 2012-2022 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
|