Skip to content

Commit

Permalink
Fix taxonomy hiding of loc/org in API
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjaheitmann committed Jan 17, 2025
1 parent e06fb4d commit 6697843
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ class ResourceQuotasController < ::Api::V2::BaseController
resource_id 'resource_quota'
api_version 'v2'
api_base_url '/foreman_resource_quota/api'
end

begin
# add backwords compatibility here, the method is only available for Foreman 3.14
hide_taxonomy_options
rescue NameError
# we can ignore the error
param :location_id, Integer, show: false
param :organization_id, Integer, show: false
end

before_action :find_resource, only: %i[show update destroy]
Expand Down

0 comments on commit 6697843

Please sign in to comment.