diff --git a/site/src/contexts/auth/RequirePermission.tsx b/site/src/contexts/auth/RequirePermission.tsx index 50dbd0232ab88..6e4b0f3aac186 100644 --- a/site/src/contexts/auth/RequirePermission.tsx +++ b/site/src/contexts/auth/RequirePermission.tsx @@ -1,5 +1,13 @@ +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from "components/Dialog/Dialog"; +import { Link } from "components/Link/Link"; import type { FC, ReactNode } from "react"; -import { Navigate } from "react-router-dom"; export interface RequirePermissionProps { children?: ReactNode; @@ -14,7 +22,24 @@ export const RequirePermission: FC = ({ isFeatureVisible, }) => { if (!isFeatureVisible) { - return ; + return ( + + + + + You don't have permission to view this page + + + + If you believe this is a mistake, please contact your administrator + or try signing in with different credentials. + + + Go to workspaces + + + + ); } return <>{children};