Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit c8a4521

Browse files
committed
fix: sign up page available when registration is disabled
1 parent 3c74cc1 commit c8a4521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/auth/signUp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SignUp = () => {
1010
const router = useRouter();
1111
if (user) {
1212
router.replace("/");
13-
} else if (config.get("ALLOW_REGISTRATION") == "false") {
13+
} else if (!config.get("ALLOW_REGISTRATION")) {
1414
router.replace("/auth/signIn");
1515
} else {
1616
return (

0 commit comments

Comments
 (0)