getUser($request), $course, Authority::SCOPE_BASIC)) { throw new AuthorizationFailedException(); } list($offset, $limit) = $this->getOffsetAndLimit(); $statusGroups = \Statusgruppen::findBySeminar_id($course->id); $total = count($statusGroups); return $this->getPaginatedContentResponse( array_slice($statusGroups, $offset, $limit), $total ); } }