Skip to content

Commit a365152

Browse files
committed
fix(comments): allow updating replies
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent a7f306a commit a365152

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)