20191029101733_issue_2608_missing_trigger_permission.rb 401 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue2608MissingTriggerPermission < ActiveRecord::Migration[5.2]
  3. def up
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Permission.create_if_not_exists(
  6. name: 'admin.trigger',
  7. note: 'Manage %s',
  8. preferences: {
  9. translations: ['Triggers']
  10. },
  11. )
  12. end
  13. end