X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/33e6d3356af3f7eaa484dbaa7a671aa25f5042e4..4fb2e411c6fec1dad6472d0080810a9b8d267c0f:/apps/workbench/app/controllers/pipeline_templates_controller.rb diff --git a/apps/workbench/app/controllers/pipeline_templates_controller.rb b/apps/workbench/app/controllers/pipeline_templates_controller.rb index eb5f3793d7..83ab88f612 100644 --- a/apps/workbench/app/controllers/pipeline_templates_controller.rb +++ b/apps/workbench/app/controllers/pipeline_templates_controller.rb @@ -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