Skip to content

Commit c9d1789

Browse files
authored
Merge pull request #7727 from nextcloud/fix/check-attachments
fix: check cardId for attachment
2 parents 9fd62c4 + 440b52a commit c9d1789

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)