X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d63601c63f651ab9fe4fefb5a7e8d76bf0495da3..df5f366f4bd87ee90cf39248542435b1b924b58a:/services/api/lib/current_api_client.rb diff --git a/services/api/lib/current_api_client.rb b/services/api/lib/current_api_client.rb index 97348d5fb4..49638677b1 100644 --- a/services/api/lib/current_api_client.rb +++ b/services/api/lib/current_api_client.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + $system_user = nil $system_group = nil $all_users_group = nil @@ -130,18 +134,12 @@ module CurrentApiClient end def act_as_user user - #auth_was = Thread.current[:api_client_authorization] user_was = Thread.current[:user] Thread.current[:user] = user - #Thread.current[:api_client_authorization] = ApiClientAuthorization. - # where('user_id=? and scopes is null', user.id). - # order('expires_at desc'). - # first begin yield ensure Thread.current[:user] = user_was - #Thread.current[:api_client_authorization] = auth_was end end