20210909093800_issue_3168_token_setting.rb 319 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3168TokenSetting < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.find_by(name: 'api_token_access').update(frontend: true)
  7. end
  8. end