Merge branch '3114-copy-to-project' closes #3114
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index 98bc53ae4612d5efd25ef7a6dc96287bb2857bf9..5c99c15abc62544f79c4bca6f148da051f8e59a8 100644 (file)
@@ -436,6 +436,10 @@ class ApplicationController < ActionController::Base
       false  # We may redirect to login, or not, based on the current action.
     else
       session[:arvados_api_token] = params[:api_token]
+      # If we later have trouble contacting the API server, we still want
+      # to be able to render basic user information in the UI--see
+      # render_exception above.  We store that in the session here.  This is
+      # not intended to be used as a general-purpose cache.  See #2891.
       session[:user] = {
         uuid: user.uuid,
         email: user.email,