X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a59152e34814f453a7380e68a55534e2f8922d57..b3b64d046641ccc39e4f4d6fab85a8b831732d51:/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 3e931004be..83ab88f612 100644 --- a/apps/workbench/app/controllers/pipeline_templates_controller.rb +++ b/apps/workbench/app/controllers/pipeline_templates_controller.rb @@ -1,6 +1,17 @@ class PipelineTemplatesController < ApplicationController - before_filter :ensure_current_user_is_admin - def index - @objects = model_class.all + skip_around_filter :require_thread_api_token, if: proc { |ctrl| + Rails.configuration.anonymous_user_token and + 'show' == ctrl.action_name + } + + include PipelineComponentsHelper + + def show + @objects = PipelineInstance.where(pipeline_template_uuid: @object.uuid) + super + end + + def show_pane_list + %w(Components Pipelines Advanced) end end