20200923092140_issue3195_inconsistent_granular_agent_permissions_chat.rb 393 B

12345678910111213141516
  1. class Issue3195InconsistentGranularAgentPermissionsChat < ActiveRecord::Migration[5.2]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Permission.create_or_update(
  6. name: 'chat',
  7. note: 'Access to %s',
  8. preferences: {
  9. translations: ['Chat'],
  10. disabled: true,
  11. },
  12. )
  13. end
  14. end