17154: Make sure most current user record is loaded.
[arvados.git] / apps / workbench / app / controllers / pipeline_templates_controller.rb
index 7d94e3469a10792f148a32e5c3a84e67c564dbc4..aa444c153b6163d3a65d43bbeb790d2c06688844 100644 (file)
@@ -3,8 +3,8 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 class PipelineTemplatesController < ApplicationController
-  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
-    Rails.configuration.anonymous_user_token and
+  skip_around_action :require_thread_api_token, if: proc { |ctrl|
+    !Rails.configuration.Users.AnonymousUserToken.empty? and
     'show' == ctrl.action_name
   }