Merge branch 'master' into 3296-user-profile
[arvados.git] / apps / workbench / app / views / projects / _show_sharing.html.erb
index ad23065876cfea66acc6caa31eb05b46770ab92b..ff0062c24bb15b44c72e13628d44f659f2e3dff2 100644 (file)
@@ -1,7 +1,13 @@
 <%
    uuid_map = {}
-   [@users, @groups].each do |obj_list|
-     obj_list.each { |o| uuid_map[o.uuid] = o }
+   if @share_links
+     [User, Group].each do |type|
+       type.limit(10000)
+         .filter([['uuid','in',@share_links.collect(&:tail_uuid)]])
+         .each do |o|
+         uuid_map[o.uuid] = o
+       end
+     end
    end
    perm_name_desc_map = {}
    perm_desc_name_map = {}