Merge branch '5073-docker-limitations' closes #5073
[arvados.git] / apps / workbench / app / controllers / pipeline_templates_controller.rb
index cf84aef96e393faad2b37dc73ae83e15937ca794..83ab88f6122dd1e5234bb12e4978fbabe89b263f 100644 (file)
@@ -1,5 +1,8 @@
 class PipelineTemplatesController < ApplicationController
-  skip_around_filter :require_thread_api_token, only: :show
+  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+    Rails.configuration.anonymous_user_token and
+    'show' == ctrl.action_name
+  }
 
   include PipelineComponentsHelper