20240906135440_add_more_missing_permissions.rb 767 B

12345678910111213141516171819202122
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class AddMoreMissingPermissions < ActiveRecord::Migration[7.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Permission.create_if_not_exists(
  7. name: 'admin.ticket_auto_assignment',
  8. label: 'Ticket Auto Assignment',
  9. description: 'Manage ticket auto assignment settings of your system.',
  10. preferences: { prio: 1331 }
  11. )
  12. Permission.create_if_not_exists(
  13. name: 'admin.ticket_duplicate_detection',
  14. label: 'Ticket Duplicate Detection',
  15. description: 'Manage ticket duplicate detection settings of your system.',
  16. preferences: { prio: 1332 }
  17. )
  18. end
  19. end