fix: Server error when loading documents.info with shareId and user token and child documents shared
closes #2527
This commit is contained in:
@ -541,8 +541,7 @@ async function loadDocument({
|
||||
const canReadDocument = can(user, "read", document);
|
||||
if (canReadDocument) {
|
||||
await share.update({ lastAccessedAt: new Date() });
|
||||
|
||||
return { document, share, collection };
|
||||
return { document, share, collection: document.collection };
|
||||
}
|
||||
|
||||
// "published" === on the public internet.
|
||||
|
Reference in New Issue
Block a user