diff --git a/apps/console/src/components/PageError.tsx b/apps/console/src/components/PageError.tsx index a27b8d42a..0e9ff3356 100644 --- a/apps/console/src/components/PageError.tsx +++ b/apps/console/src/components/PageError.tsx @@ -68,6 +68,20 @@ export function PageError({ resetErrorBoundary, error: propsError }: Props) { ); } + if (error && error.toString().includes("FORBIDDEN")) { + return ( +
+ {__("The page you are looking for does not exist")} +
+{__("Full access to everything")}
+ )} + {field.value === "ADMIN" && ( +{__("Full access except organization setup and API keys")}
+ )} + {field.value === "VIEWER" && ( +{__("Read-only access")}
+ )} +