13098: 12199: Fix hostname assigned but not saved.
[arvados.git] / services / api / app / controllers / arvados / v1 / collections_controller.rb
index 0312d956a6168d957f50136d4c03df691f88279c..fb75007dc6738ab984d5de19bf347fb9b672c975 100644 (file)
@@ -28,7 +28,7 @@ class Arvados::V1::CollectionsController < ApplicationController
 
   def find_objects_for_index
     if params[:include_trash] || ['destroy', 'trash', 'untrash'].include?(action_name)
-      @objects = Collection.unscoped.readable_by(*@read_users)
+      @objects = Collection.readable_by(*@read_users, {include_trash: true})
     end
     super
   end