Skip to content

Commit 82ae78b

Browse files
authored
Merge pull request #7740 from nextcloud/backport/7727/stable31
[stable31] fix: check cardId for attachment
2 parents 5d68643 + 99bf6a9 commit 82ae78b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Service/AttachmentService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public function update($cardId, $attachmentId, $data, $type = 'deck_file') {
273273
}
274274

275275
if ($service instanceof ICustomAttachmentService) {
276+
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT);
276277
try {
277278
$attachment = new Attachment();
278279
$attachment->setId($attachmentId);

0 commit comments

Comments
 (0)