X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a3db87c5a23f3a1e72ea82304d24db8c1757c095..cac035d7a171b90f0dc714d17b500b4062c0c58b:/apps/workbench/app/controllers/collections_controller.rb diff --git a/apps/workbench/app/controllers/collections_controller.rb b/apps/workbench/app/controllers/collections_controller.rb index e869824be4..5ddf93c2d3 100644 --- a/apps/workbench/app/controllers/collections_controller.rb +++ b/apps/workbench/app/controllers/collections_controller.rb @@ -1,3 +1,5 @@ +require "arvados/keep" + class CollectionsController < ApplicationController include ActionController::Live @@ -298,7 +300,9 @@ class CollectionsController < ApplicationController most_specific_error = [401] token_list.each do |api_token| begin - using_specific_api_token(api_token) do + # We can't load the corresponding user, because the token may not + # be scoped for that. + using_specific_api_token(api_token, load_user: false) do yield return api_token end