range_id); if (!$range) { throw new RecordNotFoundException(); } $user = $this->getUser($request); if (!Authority::canShowForum($user, $range)) { throw new AuthorizationFailedException(); } return $this->getContentResponse($discussion); } }