X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39..252e4cb551974b888cfe28cc4a51a241b91d529a:/apps/workbench/app/controllers/workflows_controller.rb?ds=sidebyside diff --git a/apps/workbench/app/controllers/workflows_controller.rb b/apps/workbench/app/controllers/workflows_controller.rb index 3b98413e23..4d78ca7ed9 100644 --- a/apps/workbench/app/controllers/workflows_controller.rb +++ b/apps/workbench/app/controllers/workflows_controller.rb @@ -3,8 +3,8 @@ # SPDX-License-Identifier: AGPL-3.0 class WorkflowsController < 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 }