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