getUser($request); if (!Authority::canIndexPublicLinks($user)) { throw new AuthorizationFailedException(); } $resources = PublicLink::findBySQL('user_id = ? ORDER BY mkdate', [$user->id]); return $this->getContentResponse($resources); } }