5365: preload output collection uuids and jobs to help improve performance when loadi...
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 5fc541c1715665088dcf9b25e8a8696c691cc22b..420ffbaf117a599a4ad1a8d31ee2a764197c0ddd 100644 (file)
@@ -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