X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/99240b3ebe6affa2087b7c320970bdb46c4594fd..6653f96c23ff461bc4cadf5184a95e1c9142f7e6:/services/api/app/controllers/application_controller.rb?ds=sidebyside diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index b23515dda4..369043e780 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -433,7 +433,7 @@ class ApplicationController < ActionController::Base end def disable_api_methods - if Rails.configuration.API.DisabledAPIs.include?(controller_name + "." + action_name) + if Rails.configuration.API.DisabledAPIs[controller_name + "." + action_name] send_error("Disabled", status: 404) end end