/** * {@inheritDoc} */ public function findThreadById($id) { $thread = $this->realManager->findThreadById($id); if (null !== $thread && !$this->threadAcl->canView($thread)) { throw new AccessDeniedException(); } return $thread; }