X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0eb72b526bf8bbb011551ecf019f604e17a534f1..f98e0188777b3e2d229c968824b3e64307dae4e6:/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 711c663a23..49638677b1 100644 --- a/services/api/lib/current_api_client.rb +++ b/services/api/lib/current_api_client.rb @@ -134,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