From ffab6c46c1c267f46d1d4eb3fd8060a4e5fada4b Mon Sep 17 00:00:00 2001 From: Jarrod Flesch Date: Mon, 4 Oct 2021 18:05:55 -0400 Subject: [PATCH] fix: ensures update field access control receives id --- src/collections/operations/update.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/collections/operations/update.ts b/src/collections/operations/update.ts index 26c90438c15..85e48439813 100644 --- a/src/collections/operations/update.ts +++ b/src/collections/operations/update.ts @@ -107,6 +107,7 @@ async function update(incomingArgs: Arguments): Promise { docWithLocales = JSON.parse(docWithLocales); const originalDoc = await performFieldOperations(collectionConfig, { + id, depth: 0, req, data: docWithLocales, @@ -279,6 +280,7 @@ async function update(incomingArgs: Arguments): Promise { // ///////////////////////////////////// result = await performFieldOperations(collectionConfig, { + id, depth, req, data: result,