Skip to content

Commit 6abdf27

Browse files
authored
Merge pull request #7737 from nextcloud/backport/7727/stable33
[stable33] fix: check cardId for attachment
2 parents 36896b8 + 10b8fc2 commit 6abdf27

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