X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/96b33e5ac77dbd0a003b428d5531431f3e999bef..a079a9f1627188e3ef0bb73e004defa2129d25f2:/services/api/app/controllers/application_controller.rb diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index b6816d35c7..d09283d928 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'safe_json' module ApiTemplateOverride @@ -83,9 +87,6 @@ class ApplicationController < ActionController::Base end def index - if @select.nil? || @select.include?("id") - @objects = @objects.uniq(&:id) - end if params[:eager] and params[:eager] != '0' and params[:eager] != 0 and params[:eager] != '' @objects.each(&:eager_load_associations) end @@ -179,7 +180,7 @@ class ApplicationController < ActionController::Base end def find_objects_for_index - @objects ||= model_class.readable_by(*@read_users) + @objects ||= model_class.readable_by(*@read_users, {:include_trash => (params[:include_trash] || 'untrash' == action_name)}) apply_where_limit_order_params end