projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
9799: Remove duplicate uuids from db queries.
[arvados.git]
/
services
/
api
/
app
/
models
/
arvados_model.rb
diff --git
a/services/api/app/models/arvados_model.rb
b/services/api/app/models/arvados_model.rb
index 8ae3e43fecdd5dd371e41ec9d0d5ecc9b4d8deca..7b8f12ba54c2aa96ca98726c4c804e412982cda6 100644
(file)
--- a/
services/api/app/models/arvados_model.rb
+++ b/
services/api/app/models/arvados_model.rb
@@
-199,6
+199,7
@@
class ArvadosModel < ActiveRecord::Base
# authorized users themselves) is an object's owner_uuid, that
# object is readable.
owner_uuids = user_uuids + users_list.flat_map { |u| u.groups_i_can(:read) }
+ owner_uuids.uniq!
sql_conds = []
sql_table = kwargs.fetch(:table_name, table_name)