X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8f924c10a36dc073c33f390eee6a2d2cd069859f..2bbb460a29d6f76bc50aacdba466aa6262ed93a3:/apps/workbench/app/controllers/work_units_controller.rb?ds=inline diff --git a/apps/workbench/app/controllers/work_units_controller.rb b/apps/workbench/app/controllers/work_units_controller.rb index 767762c81e..1ecea99bab 100644 --- a/apps/workbench/app/controllers/work_units_controller.rb +++ b/apps/workbench/app/controllers/work_units_controller.rb @@ -3,8 +3,8 @@ # SPDX-License-Identifier: AGPL-3.0 class WorkUnitsController < ApplicationController - skip_around_filter :require_thread_api_token, if: proc { |ctrl| - Rails.configuration.anonymous_user_token and + skip_around_action :require_thread_api_token, if: proc { |ctrl| + !Rails.configuration.Users.AnonymousUserToken.empty? and 'show_child_component' == ctrl.action_name } @@ -126,7 +126,7 @@ class WorkUnitsController < ApplicationController "--local", "--api=containers", "--project-uuid=#{params['work_unit']['owner_uuid']}", - "--collection-keep-cache=#{keep_cache}", + "--collection-cache-size=#{keep_cache}", "/var/lib/cwl/workflow.json#main", "/var/lib/cwl/cwl.input.json"]