20180913000002_permission_add_time_accounting.rb 446 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class PermissionAddTimeAccounting < 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: 'admin.time_accounting',
  8. note: 'Manage %s',
  9. preferences: {
  10. translations: ['Time Accounting']
  11. },
  12. )
  13. end
  14. end