X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f01af635017a4988e07252f81072d0d37a889298..8dcbc531fdf79ab2e4eb29a6dad6dcd9fa103718:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index 5fc541c171..420ffbaf11 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -184,7 +184,11 @@ module ApplicationHelper end if resource_class.andand.to_s == 'Collection' - readable = resource_class.find?(attrvalue) + if CollectionsHelper.match(attrvalue) + readable = Collection.find? attrvalue + else + readable = collections_for_object(attrvalue).any? + end else readable = object_for_dataclass(resource_class, attrvalue) end