Hello,
thank you for your help. Unfortunately, at the second command, ruby seems to limit the output (giving …), so I added another output using the “each” method.
Here are the requested console outputs:
irb(main):013:0> Setting.get('kb_active') and Setting.get('kb_active_publicly')
=> false
irb(main):016:0> User.find_by(login: 'DELETED BEFORE PASTING').permissions
=>
#<ActiveRecord::Associations::CollectionProxy [
#<Permission id: 66, name: "user_preferences", note: "User Preferences", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2021-03-05 13:58:32", allow_signup: true>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 94, name: "chat.agent", note: "Access to %s", preferences: {"translations"=>["Chat"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 98, name: "cti.agent", note: "Access to %s", preferences: {"translations"=>["CTI"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 66, name: "user_preferences", note: "User Preferences", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2021-03-05 13:58:32", allow_signup: true>,
#<Permission id: 2, name: "admin", note: "Admin Interface", preferences: {}, active: true, created_at: "2017-10-06 13:52:36", updated_at: "2017-10-06 13:52:36", allow_signup: false>,
#<Permission id: 84, name: "report", note: "Report Interface", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2017-10-06 13:52:37", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
...]>
irb(main):021:0> User.find_by(login: 'DELETED BEFORE PASTE').permissions.each()
=>
#<Enumerator: [
#<Permission id: 66, name: "user_preferences", note: "User Preferences", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2021-03-05 13:58:32", allow_signup: true>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 94, name: "chat.agent", note: "Access to %s", preferences: {"translations"=>["Chat"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 98, name: "cti.agent", note: "Access to %s", preferences: {"translations"=>["CTI"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 66, name: "user_preferences", note: "User Preferences", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2021-03-05 13:58:32", allow_signup: true>,
#<Permission id: 2, name: "admin", note: "Admin Interface", preferences: {}, active: true, created_at: "2017-10-06 13:52:36", updated_at: "2017-10-06 13:52:36", allow_signup: false>,
#<Permission id: 84, name: "report", note: "Report Interface", preferences: {}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2017-10-06 13:52:37", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>,
#<Permission id: 88, name: "ticket.agent", note: "Access to Agent Tickets based on Group Access", preferences: {"plugin"=>["groups"]}, active: true, created_at: "2017-10-06 13:52:37", updated_at: "2020-10-20 19:53:41", allow_signup: false>
]:each>
Regards
Matthias