diff --git a/lib/Service/CommentService.php b/lib/Service/CommentService.php index f773e41dc..e5d4bc140 100644 --- a/lib/Service/CommentService.php +++ b/lib/Service/CommentService.php @@ -72,7 +72,7 @@ private function get(int $cardId, int $commentId): IComment { throw new NotFoundException('No comment found.'); } if ($comment->getParentId() !== '0') { - $this->permissionService->checkPermission($this->cardMapper, (int)$comment->getParentId(), Acl::PERMISSION_READ); + $this->permissionService->checkPermission($this->cardMapper, (int)$comment->getObjectId(), Acl::PERMISSION_READ); } return $comment;