range_id); if (!$range) { throw new RecordNotFoundException(); } $user = $this->getUser($request); if (!Authority::canShowForum($user, $range)) { throw new AuthorizationFailedException(); } $topics = $category->topics ?? \SimpleORMapCollection::createFromArray([]); return $this->getPaginatedContentResponse( $topics->limit(...$this->getOffsetAndLimit()), count($topics) ); } }