Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(license): add check for current route for workspace access (#7341)

Vikrant Gupta5aea44293945
diff --git a/frontend/src/AppRoutes/Private.tsx b/frontend/src/AppRoutes/Private.tsx
index 15212686ee..c612ffe639 100644
--- a/frontend/src/AppRoutes/Private.tsx
+++ b/frontend/src/AppRoutes/Private.tsx
@@ -152,7 +152,11 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
const { platform } = activeLicenseV3;
- if (isWorkspaceAccessRestricted && platform === LicensePlatform.CLOUD) {
+ if (
+ isWorkspaceAccessRestricted &&
+ platform === LicensePlatform.CLOUD &&
+ currentRoute
+ ) {
navigateToWorkSpaceAccessRestricted(currentRoute);
}
}