X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/82b46502f25b6992c93bfe7689acc095aa447e5b..25f3a23bc8794b77a1b5fa1e5e7f9c38a152dd8f:/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 f1fd092c22..218ba893fc 100644 --- a/apps/workbench/app/controllers/collections_controller.rb +++ b/apps/workbench/app/controllers/collections_controller.rb @@ -121,11 +121,15 @@ class CollectionsController < ApplicationController end def sharing_scopes - ["GET /arvados/v1/collections/#{@object.uuid}", "GET /arvados/v1/keep_services"] + ["GET /arvados/v1/collections/#{@object.uuid}", "GET /arvados/v1/collections/#{@object.uuid}/", "GET /arvados/v1/keep_services/accessible"] end def search_scopes - ApiClientAuthorization.filter([['scopes', '=', sharing_scopes]]).results + begin + ApiClientAuthorization.filter([['scopes', '=', sharing_scopes]]).results + rescue ArvadosApiClient::AccessForbiddenException + nil + end end def show