diff --git a/app/layouts/shell.tsx b/app/layouts/shell.tsx
index 5ec00be..1eb7d85 100644
--- a/app/layouts/shell.tsx
+++ b/app/layouts/shell.tsx
@@ -53,7 +53,7 @@ export async function loader({ request, context }: Route.LoaderArgs) {
settings: context.auth.can(principal, Capabilities.read_feature),
},
onboarding: request.url.endsWith("/onboarding"),
- pendingApproval: !check && principal.kind === "oidc",
+ noAccess: !check && principal.kind === "oidc",
healthy: await api.isHealthy(),
};
} catch {
@@ -66,20 +66,17 @@ export async function loader({ request, context }: Route.LoaderArgs) {
}
export default function Shell({ loaderData }: Route.ComponentProps) {
- if (loaderData.pendingApproval && !loaderData.onboarding) {
+ if (loaderData.noAccess && !loaderData.onboarding) {
return (
<>
- Pending Approval
+ No Access
- Your account has been created but you don't have access to the UI yet. An
- administrator needs to assign you a role before you can continue.
-
-
- If you believe this is a mistake, please contact your administrator.
+ Your account doesn't have permission to access the dashboard. Contact an
+ administrator if you need access.