14807: Fix admin permissions for containers.
authorTom Clegg <tclegg@veritasgenetics.com>
Tue, 19 Feb 2019 22:28:26 +0000 (17:28 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Tue, 19 Feb 2019 22:28:26 +0000 (17:28 -0500)
commit5d8ebb8d00de8c3afa59045fa929536ff8973881
tree9fed66a769ccdd2ae3c281e1129b368f614305f1
parent36e1f63fde4005f38a8d9825abc8244057d9bb58
14807: Fix admin permissions for containers.

Admins are allowed to see all containers, even ones that aren't
associated with any container request.

Otherwise, when a container request retries, even the dispatcher can't
see the previously assigned container, and therefore never learns that
the container is supposed to be cancelled.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
services/api/app/models/container.rb
services/api/test/unit/container_test.rb