20171207000001_permission_user_preferences_out_of_office.rb 502 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class PermissionUserPreferencesOutOfOffice < ActiveRecord::Migration[5.1]
  3. def up
  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: 'user_preferences.out_of_office',
  8. note: 'Change %s',
  9. preferences: {
  10. translations: ['Out of Office'],
  11. required: ['ticket.agent'],
  12. },
  13. )
  14. end
  15. end