From c8a4521677280d6aba89d293a1fe0c38adf9f92c Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 9 Dec 2022 12:05:43 +0100 Subject: [PATCH] fix: sign up page available when registration is disabled --- frontend/src/pages/auth/signUp.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/auth/signUp.tsx b/frontend/src/pages/auth/signUp.tsx index faa68ec..316b90e 100644 --- a/frontend/src/pages/auth/signUp.tsx +++ b/frontend/src/pages/auth/signUp.tsx @@ -10,7 +10,7 @@ const SignUp = () => { const router = useRouter(); if (user) { router.replace("/"); - } else if (config.get("ALLOW_REGISTRATION") == "false") { + } else if (!config.get("ALLOW_REGISTRATION")) { router.replace("/auth/signIn"); } else { return (