8177: Expand trust_all_content comments.
[arvados.git] / apps / workbench / app / controllers / projects_controller.rb
index 44c85185c7c316a3f7d5efbb1c5566016b14348d..e49ed1fab65f38b6631c0298f8ba508feacd9087 100644 (file)
@@ -184,7 +184,11 @@ class ProjectsController < ApplicationController
   end
 
   def find_objects_for_index
-    @objects = all_projects
+    # We can use the all_projects helper, but we have to dup the
+    # result -- otherwise, when we apply our per-request filters and
+    # limits, they will infect the @all_projects cache too (see
+    # #6640).
+    @objects = all_projects.dup
     super
   end