fix: ensures field read access within login operation has id

This commit is contained in:
Jarrod Flesch
2021-10-05 18:05:48 -04:00
parent ffab6c46c1
commit e3229c55f3

View File

@@ -173,6 +173,7 @@ async function login(incomingArgs: Arguments): Promise<Result> {
user = await this.performFieldOperations(collectionConfig, {
depth,
req,
id: user.id,
data: user,
hook: 'afterRead',
operation: 'login',