/** * {@inheritDoc} */ public function findCommentsByThread(ThreadInterface $thread, $depth = null, $sorterAlias = null) { $comments = $this->realManager->findCommentsByThread($thread, $depth, $sorterAlias); foreach ($comments as $comment) { if (!$this->commentAcl->canView($comment)) { throw new AccessDeniedException(); } } return $comments; }