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