From 440b52a2e3113b18f107e57e187f26ce344c1327 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 a987ddb3a..0c2463be0 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -251,6 +251,7 @@ public function update(int $cardId, int $attachmentId, string $data, string $typ } if ($service instanceof ICustomAttachmentService) { + $this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT); try { $attachment = new Attachment(); $attachment->setId($attachmentId);