feat: ensures update hooks have access to full original docs even in spite of access control
This commit is contained in:
@@ -113,7 +113,7 @@ async function update(incomingArgs: Arguments): Promise<Document> {
|
||||
data: docWithLocales,
|
||||
hook: 'afterRead',
|
||||
operation: 'update',
|
||||
overrideAccess,
|
||||
overrideAccess: true,
|
||||
flattenLocales: true,
|
||||
showHiddenFields,
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ async function update(args) {
|
||||
data: globalJSON,
|
||||
hook: 'afterRead',
|
||||
operation: 'update',
|
||||
overrideAccess,
|
||||
overrideAccess: true,
|
||||
flattenLocales: true,
|
||||
showHiddenFields,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user