From e871211e4b8543d185e6cc36f8faddc512fa53eb Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Mon, 9 Mar 2026 15:55:02 +0100 Subject: [PATCH] fix: check cardId for attachment Signed-off-by: grnd-alt --- lib/Service/AttachmentService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index 82a946c097..e2dd6063f4 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -289,6 +289,7 @@ public function update($cardId, $attachmentId, $data, $type = 'deck_file') { } if ($service instanceof ICustomAttachmentService) { + $this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT); try { $attachment = new Attachment(); $attachment->setId($attachmentId);