X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/03428065459077f94f44c53573944f22bda63779..2255281ed7406e7c10027ed778f53ee28e6869fa:/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