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);