X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2bbb460a29d6f76bc50aacdba466aa6262ed93a3..e22d3dc998f55e3c21125b1a1be7240f89c23dd6:/services/api/app/controllers/application_controller.rb 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