diff --git a/src/imports/utils/accessUtils.ts b/src/imports/utils/accessUtils.ts index 6164868..4f82979 100644 --- a/src/imports/utils/accessUtils.ts +++ b/src/imports/utils/accessUtils.ts @@ -129,7 +129,7 @@ export function removeUnauthorizedDataForRead(metaAccess: MetaAccess, data: Reco if (!isObject(data)) { return data; } - const newData: typeof data = {}; + const newData: typeof data = { _id: data._id }; for (const fieldName in data) { const access = getFieldPermissions(metaAccess, fieldName);