20200923092140_issue3195_inconsistent_granular_agent_permissions_chat.rb 470 B

123456789101112131415161718
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3195InconsistentGranularAgentPermissionsChat < ActiveRecord::Migration[5.2]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Permission.create_or_update(
  7. name: 'chat',
  8. note: 'Access to %s',
  9. preferences: {
  10. translations: ['Chat'],
  11. disabled: true,
  12. },
  13. )
  14. end
  15. end