X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/230ac956317ec9389252240de934edc168098a76..34173202861e94dee58ccd5b189983918813d870:/services/api/app/controllers/user_sessions_controller.rb diff --git a/services/api/app/controllers/user_sessions_controller.rb b/services/api/app/controllers/user_sessions_controller.rb index 696ae026c5..3e79915f3c 100644 --- a/services/api/app/controllers/user_sessions_controller.rb +++ b/services/api/app/controllers/user_sessions_controller.rb @@ -57,6 +57,9 @@ class UserSessionsController < ApplicationController end end + # For the benefit of functional and integration tests: + @user = user + # prevent ArvadosModel#before_create and _update from throwing # "unauthorized": Thread.current[:user] = user