renamed attachment's parentId to more fitting ownerId

This commit is contained in:
zadam
2023-07-14 17:01:56 +02:00
parent ca41806bc2
commit d475346a09
25 changed files with 63 additions and 63 deletions

View File

@@ -48,7 +48,7 @@ function checkAttachmentAccess(attachmentId, req, res) {
return false;
}
const note = checkNoteAccess(attachment.parentId, req, res);
const note = checkNoteAccess(attachment.ownerId, req, res);
// truthy note means the user has access, and we can return the attachment
return note ? attachment : false;