mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
renamed attachment's parentId to more fitting ownerId
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user