feat: ensures update hooks have access to full original docs even in spite of access control

This commit is contained in:
James
2021-11-10 17:25:59 -05:00
parent e3e41c3621
commit b2c5b7e575
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ async function update(incomingArgs: Arguments): Promise<Document> {
data: docWithLocales,
hook: 'afterRead',
operation: 'update',
overrideAccess,
overrideAccess: true,
flattenLocales: true,
showHiddenFields,
});

View File

@@ -44,7 +44,7 @@ async function update(args) {
data: globalJSON,
hook: 'afterRead',
operation: 'update',
overrideAccess,
overrideAccess: true,
flattenLocales: true,
showHiddenFields,
});