diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index 5cbdaafc..5ffab359 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -211,11 +211,7 @@ export default function Admin() { }, [loadOpportunityApplications]); useEffect(() => { - if (!loading) { - if (!user) { - navigate("/login", { replace: true }); - } - } + // Do not redirect unauthenticated users; show inline access UI instead }, [user, loading, navigate]); useEffect(() => { @@ -224,7 +220,7 @@ export default function Admin() { } }, [managedProfiles, selectedMemberId]); - if (loading || !user) { + if (loading) { return (