getUser($request); if (!RangeAuthority::canShowRange($user, $range)) { throw new AuthorizationFailedException(); } $topics = ForumTopic::getCourseTopics($range->id); return $this->getPaginatedContentResponse( array_slice($topics, ...$this->getOffsetAndLimit()), count($topics) ); } }