Sha256: 891ece57c916b0c4625aa8299587f3e1817bd5b6a7f94b2b311f6895e0e88472
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true class PreupgradeReportsController < ::Api::V2::BaseController include Api::V2::ApiAuthorizer def index @preupgrade_reports = resource_scope.includes(:preupgrade_report_entries).search_for(*search_options) end private # By overriding :path_to_authenticate we can require REX's :view_job_invocations permission def path_to_authenticate Foreman::AccessControl.normalize_path_hash params.slice(:action, :id, :user_id) .merge({ controller: 'job_invocations' }) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_leapp-2.0.3 | app/controllers/preupgrade_reports_controller.rb |
foreman_leapp-2.0.2 | app/controllers/preupgrade_reports_controller.rb |