user())) { throw new AccessDeniedHttpException('This account does not have permission to access this resource.'); } return $next($request); } }