From c85337f96c13d9dbb7098708508231f7d06e473f Mon Sep 17 00:00:00 2001
From: Star Richardson <67430892+alicenstar@users.noreply.github.com>
Date: Mon, 16 Oct 2023 16:10:48 -0600
Subject: [PATCH] protect routes
---
web/src/Root.tsx | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/web/src/Root.tsx b/web/src/Root.tsx
index 684fe64170..756c2eea8a 100644
--- a/web/src/Root.tsx
+++ b/web/src/Root.tsx
@@ -574,17 +574,24 @@ const Root = () => {
}
/>
} />
-
- ) : (
-
- )
- }
- />
- } />
+ {state.adminConsoleMetadata?.isKurl ||
+ (state.adminConsoleMetadata?.isHelmVM && (
+
+ ) : (
+
+ )
+ }
+ />
+ ))}
+ {state.adminConsoleMetadata?.isHelmVM && (
+ } />
+ )}
}