Skip to content

Commit 14c10f0

Browse files
authored
Merge pull request #7741 from nextcloud/backport/7727/stable29
[stable29] fix: check cardId for attachment
2 parents 3473c23 + e871211 commit 14c10f0

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
@@ -289,6 +289,7 @@ public function update($cardId, $attachmentId, $data, $type = 'deck_file') {
289289
}
290290

291291
if ($service instanceof ICustomAttachmentService) {
292+
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT);
292293
try {
293294
$attachment = new Attachment();
294295
$attachment->setId($attachmentId);

0 commit comments

Comments
 (0)