Skip to content

Commit

Permalink
The org-id is implicitly set by setting the scc-account-id.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Sep 20, 2023
1 parent aba04a9 commit d5d3a59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/api/v2/scc_products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def metadata_subtotal
def index
scope = resource_scope
scope = scope.where.not(:product_id => nil) if ::Foreman::Cast.to_bool(params[:subscribed_only])
scope = scope.where(:organization => params[:organization_id]) if params[:organization_id].present?
@scc_products = scope.search_for(params[:search], :order => params[:order]).paginate(:page => params[:page])
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/api/v2/scc_products/main.json.rabl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

object @scc_product
extends 'api/v2/scc_products/base'
attributes :organization_id, :organization_name, :scc_account_id, :name, :arch, :friendly_name, :description, :product_id
attributes :scc_account_id, :name, :arch, :friendly_name, :description, :product_id

0 comments on commit d5d3a59

Please sign in to comment.