17154: Make sure most current user record is loaded.
[arvados.git] / apps / workbench / app / controllers / containers_controller.rb
index a8549cd5b82e8b9e82420d7f7478b2c3a9660247..4b5606778f409f072fd44e4449200eb73ed788d0 100644 (file)
@@ -4,7 +4,7 @@
 
 class ContainersController < ApplicationController
   skip_around_action :require_thread_api_token, if: proc { |ctrl|
-    Rails.configuration.anonymous_user_token and
+    !Rails.configuration.Users.AnonymousUserToken.empty? and
     'show' == ctrl.action_name
   }