Skip to content

Commit 8de0744

Browse files
authored
Merge pull request #7896 from nextcloud/fix/update-reply-comments
fix(comments): allow updating replies
2 parents a7f306a + a365152 commit 8de0744

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/CommentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function get(int $cardId, int $commentId): IComment {
7272
throw new NotFoundException('No comment found.');
7373
}
7474
if ($comment->getParentId() !== '0') {
75-
$this->permissionService->checkPermission($this->cardMapper, (int)$comment->getParentId(), Acl::PERMISSION_READ);
75+
$this->permissionService->checkPermission($this->cardMapper, (int)$comment->getObjectId(), Acl::PERMISSION_READ);
7676
}
7777

7878
return $comment;

0 commit comments

Comments
 (0)