trabajo-afectivo/lib/session_helper/collection_object_manager_attribute.rb

15 lines
391 B
Ruby
Raw Permalink Normal View History

# 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