X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2dc7f15f81ea7f460114482614d8ec5814c36fbf..0eb72b526bf8bbb011551ecf019f604e17a534f1:/services/api/app/controllers/arvados/v1/keep_services_controller.rb diff --git a/services/api/app/controllers/arvados/v1/keep_services_controller.rb b/services/api/app/controllers/arvados/v1/keep_services_controller.rb index 2cb68fdd70..c7c911929b 100644 --- a/services/api/app/controllers/arvados/v1/keep_services_controller.rb +++ b/services/api/app/controllers/arvados/v1/keep_services_controller.rb @@ -1,7 +1,12 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class Arvados::V1::KeepServicesController < ApplicationController skip_before_filter :find_object_by_uuid, only: :accessible skip_before_filter :render_404_if_no_object, only: :accessible + skip_before_filter :require_auth_scope, only: :accessible def find_objects_for_index # all users can list all keep services @@ -10,10 +15,10 @@ class Arvados::V1::KeepServicesController < ApplicationController end def accessible - if request.headers['X-Keep-Proxy-Required'] + if request.headers['X-External-Client'] == '1' @objects = model_class.where('service_type=?', 'proxy') else - @objects = model_class.where('service_type=?', 'disk') + @objects = model_class.where(model_class.arel_table[:service_type].not_eq('proxy')) end render_list end