acct_type !== UserTypes::ULTIMATE) { throw new UnauthorizedHttpException('', 'Unauthorized: Only ultimate users allowed.'); } return $next($request); } }