X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3..ad2fd38b6c67f72c6eb9426f1a320d9517b694cd:/apps/workbench/app/controllers/containers_controller.rb diff --git a/apps/workbench/app/controllers/containers_controller.rb b/apps/workbench/app/controllers/containers_controller.rb index f0e31644f1..4b5606778f 100644 --- a/apps/workbench/app/controllers/containers_controller.rb +++ b/apps/workbench/app/controllers/containers_controller.rb @@ -3,8 +3,8 @@ # SPDX-License-Identifier: AGPL-3.0 class ContainersController < 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' == ctrl.action_name }