fix: admin users were created while the setup wizard wasn't finished
This commit is contained in:
@@ -15,7 +15,7 @@ const Setup = () => {
|
||||
if (!user) {
|
||||
router.push("/auth/signUp");
|
||||
return;
|
||||
} else if (config.get("SETUP_FINISHED")) {
|
||||
} else if (config.get("SETUP_STATUS") == "FINISHED") {
|
||||
router.push("/");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user