Merge branch '13546-crunch1-timeout' refs #13546
[arvados.git] / services / ws / permission.go
index 8bfcfcb9e69cf1699b2f335e766dd71c636b733c..a39a959312aed582957d8845dddfc70394b649a4 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 package main
 
 import (
@@ -70,7 +74,8 @@ func (pc *cachingPermChecker) Check(uuid string) (bool, error) {
 
        pc.nMisses++
        err = pc.RequestAndDecode(&buf, "GET", path, nil, url.Values{
-               "select": {`["uuid"]`},
+               "include_trash": {"true"},
+               "select":        {`["uuid"]`},
        })
 
        var allowed bool