Merge branch 'master' into 13822-nm-delayed-daemon
[arvados.git] / services / api / app / controllers / user_sessions_controller.rb
index 20633153e758c70f5b91d0b66466a06e6393b2da..b8fe2948923582ad9f40f3ec00c394cd6b2473ec 100644 (file)
@@ -70,7 +70,7 @@ class UserSessionsController < ApplicationController
       end
 
       while (uuid = user.redirect_to_user_uuid)
-        user = User.where(uuid: uuid).first
+        user = User.unscoped.where(uuid: uuid).first
         if !user
           raise Exception.new("identity_url #{omniauth['info']['identity_url']} redirects to nonexistent uuid #{uuid}")
         end