app/controllers/katello/api/v2/errata_controller.rb in katello-3.4.0.rc2 vs app/controllers/katello/api/v2/errata_controller.rb in katello-3.4.0

- old
+ new

@@ -35,9 +35,10 @@ end def custom_index_relation(collection) collection = filter_by_cve(params[:cve], collection) if params[:cve] hosts = ::Host::Managed.authorized("view_hosts") + hosts = hosts.where(:organization_id => params[:organization_id]) if params[:organization_id] if ::Foreman::Cast.to_bool(params[:errata_restrict_applicable]) collection = collection.applicable_to_hosts(hosts) end if ::Foreman::Cast.to_bool(params[:errata_restrict_installable])