X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..d6598fd6339e6219a7103781433356dfde546527:/services/api/app/controllers/arvados/v1/virtual_machines_controller.rb diff --git a/services/api/app/controllers/arvados/v1/virtual_machines_controller.rb b/services/api/app/controllers/arvados/v1/virtual_machines_controller.rb index 7a1c680717..cb637c2fda 100644 --- a/services/api/app/controllers/arvados/v1/virtual_machines_controller.rb +++ b/services/api/app/controllers/arvados/v1/virtual_machines_controller.rb @@ -3,9 +3,9 @@ # SPDX-License-Identifier: AGPL-3.0 class Arvados::V1::VirtualMachinesController < ApplicationController - skip_before_filter :find_object_by_uuid, :only => :get_all_logins - skip_before_filter :render_404_if_no_object, :only => :get_all_logins - before_filter(:admin_required, + skip_before_action :find_object_by_uuid, :only => :get_all_logins + skip_before_action :render_404_if_no_object, :only => :get_all_logins + before_action(:admin_required, :only => [:logins, :get_all_logins]) # Get all login permissons (user uuid, login account, SSH key) for a