Skip to content

Commit 440b52a

Browse files
committed
fix: check cardId for attachment
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent 1e330bc commit 440b52a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Service/AttachmentService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ public function update(int $cardId, int $attachmentId, string $data, string $typ
251251
}
252252

253253
if ($service instanceof ICustomAttachmentService) {
254+
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT);
254255
try {
255256
$attachment = new Attachment();
256257
$attachment->setId($attachmentId);

0 commit comments

Comments
 (0)