external_data_source_controller_policy.rb 321 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Controllers::ExternalDataSourceControllerPolicy < Controllers::ApplicationControllerPolicy
  3. permit! :preview, to: 'admin.object'
  4. def fetch?
  5. ExternalDataSourcePolicy
  6. .new(user, record.params[:object])
  7. .fetch?
  8. end
  9. end