Merge branch 'master' into 7490-datamanager-dont-die-return-error
[arvados.git] / apps / workbench / app / controllers / pipeline_templates_controller.rb
index eb5f3793d71b3042cc3fa1138f057c7c3ff9302b..83ab88f6122dd1e5234bb12e4978fbabe89b263f 100644 (file)
@@ -1,7 +1,8 @@
 class PipelineTemplatesController < ApplicationController
-  if Rails.configuration.anonymous_user_token
-    skip_around_filter :require_thread_api_token, only: :show
-  end
+  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+    Rails.configuration.anonymous_user_token and
+    'show' == ctrl.action_name
+  }
 
   include PipelineComponentsHelper