diff --git a/routers/authz_filter.go b/routers/authz_filter.go index 3ee30050..27ee1e2d 100644 --- a/routers/authz_filter.go +++ b/routers/authz_filter.go @@ -73,10 +73,12 @@ func getObject(ctx *context.Context) (string, string) { } } - // query == "?id=built-in/admin" - id := ctx.Input.Query("id") - if id != "" { - return util.GetOwnerAndNameFromIdNoCheck(id) + if !(strings.HasPrefix(ctx.Request.URL.Path, "/api/get-") && strings.HasSuffix(ctx.Request.URL.Path, "s")) { + // query == "?id=built-in/admin" + id := ctx.Input.Query("id") + if id != "" { + return util.GetOwnerAndNameFromIdNoCheck(id) + } } owner := ctx.Input.Query("owner")