fix server lock route to login page

This commit is contained in:
jeffvli
2025-12-05 02:15:10 -08:00
parent 83886ed4ba
commit 64a67cf169
2 changed files with 55 additions and 8 deletions
+2 -1
View File
@@ -34,11 +34,12 @@ export const AppOutlet = () => {
);
}
// When server lock is enabled always redirect to login
if (serverLock && !currentServer) {
return <Navigate replace to={AppRoute.LOGIN} />;
}
if (isActionsRequired || authState === AuthState.INVALID) {
if (!serverLock && (isActionsRequired || authState === AuthState.INVALID)) {
return <Navigate replace to={AppRoute.ACTION_REQUIRED} />;
}