Fixes #3195 - Inconsistent granular agent permissions for chat.
This commit is contained in:
parent
7937f7b39e
commit
1a3650f730
2 changed files with 18 additions and 1 deletions
|
@ -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
|
|
@ -348,7 +348,8 @@ Permission.create_if_not_exists(
|
||||||
name: 'chat',
|
name: 'chat',
|
||||||
note: 'Access to %s',
|
note: 'Access to %s',
|
||||||
preferences: {
|
preferences: {
|
||||||
translations: ['Chat']
|
translations: ['Chat'],
|
||||||
|
disabled: true,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
Permission.create_if_not_exists(
|
Permission.create_if_not_exists(
|
||||||
|
|
Loading…
Reference in a new issue