3654: move the checkbox to the left of the row in collection show page. also, fixed...
[arvados.git] / apps / workbench / app / views / projects / _show_sharing.html.erb
index bb652d43204cf3f1d3b411db88a0838704970c1c..cafaf6dae78ad539992cb50516fda73cefae219a 100644 (file)
@@ -2,7 +2,9 @@
    uuid_map = {}
    if @share_links
      [User, Group].each do |type|
-       type.filter([['uuid','in',@share_links.collect(&:tail_uuid)]]).each do |o|
+       type.limit(10000)
+         .filter([['uuid','in',@share_links.collect(&:tail_uuid)]])
+         .each do |o|
          uuid_map[o.uuid] = o
        end
      end
@@ -18,7 +20,7 @@
    end
    perms_json = perms_json.to_json
    choose_filters = {
-     "groups" => [["group_class", "=", nil]],
+     "groups" => [["group_class", "=", "role"]],
    }
    choose_filters.default = []
    owner_icon = fa_icon_class_for_uuid(@object.owner_uuid)