Fixes #3195 - Inconsistent granular agent permissions for chat.

This commit is contained in:
Marcel Herrguth 2020-10-07 09:04:48 +02:00 committed by Thorsten Eckel
parent 7937f7b39e
commit 1a3650f730
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,16 @@
class Issue3195InconsistentGranularAgentPermissionsChat < ActiveRecord::Migration[5.2]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Permission.create_or_update(
name: 'chat',
note: 'Access to %s',
preferences: {
translations: ['Chat'],
disabled: true,
},
)
end
end

View file

@ -348,7 +348,8 @@ Permission.create_if_not_exists(
name: 'chat',
note: 'Access to %s',
preferences: {
translations: ['Chat']
translations: ['Chat'],
disabled: true,
},
)
Permission.create_if_not_exists(