20171207000001_permission_user_preferences_out_of_office.rb 407 B

1234567891011121314151617
  1. class PermissionUserPreferencesOutOfOffice < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. Permission.create_if_not_exists(
  6. name: 'user_preferences.out_of_office',
  7. note: 'Change %s',
  8. preferences: {
  9. translations: ['Out of Office'],
  10. required: ['ticket.agent'],
  11. },
  12. )
  13. end
  14. end