20191029101733_issue_2608_missing_trigger_permission.rb 324 B

12345678910111213
  1. class Issue2608MissingTriggerPermission < ActiveRecord::Migration[5.2]
  2. def up
  3. return if !Setting.exists?(name: 'system_init_done')
  4. Permission.create_if_not_exists(
  5. name: 'admin.trigger',
  6. note: 'Manage %s',
  7. preferences: {
  8. translations: ['Triggers']
  9. },
  10. )
  11. end
  12. end