projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12032: Update structure.sql from master schema + migration only.
[arvados.git]
/
services
/
api
/
app
/
models
/
container.rb
diff --git
a/services/api/app/models/container.rb
b/services/api/app/models/container.rb
index d61ba75e568bc53b578e302909c831dd922578d4..0aeca6db826db3fdf9dcb5c303af4c4d21d5ede4 100644
(file)
--- a/
services/api/app/models/container.rb
+++ b/
services/api/app/models/container.rb
@@
-303,9
+303,7
@@
class Container < ArvadosModel
else
kwargs = {}
end
else
kwargs = {}
end
- kwargs[:query_on] = joins(:container_requests)
- users_list.push kwargs
- ContainerRequest.readable_by(*users_list)
+ Container.where(ContainerRequest.readable_by(*users_list).where("containers.uuid = container_requests.container_uuid").exists)
end
def final?
end
def final?