Merge branch '13076-r-autogen-api'
[arvados.git] / services / api / lib / current_api_client.rb
index 711c663a233058786ee32b48a842b29cbff456d8..49638677b18cddaeb9f27501c9d02f58d34a93f2 100644 (file)
@@ -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