From bfefa61d3586f125bb908a6cacc321a62405cf31 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Mon, 28 Feb 2022 16:05:31 -0800 Subject: [PATCH] Restrict signups to theoremone.co emails --- common/access.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/access.ts b/common/access.ts index acd894b1..4a128108 100644 --- a/common/access.ts +++ b/common/access.ts @@ -1,6 +1,5 @@ export function isWhitelisted(email?: string) { - return true - // e.g. return email.endsWith('@theoremone.co') || isAdmin(email) + return email && (email.endsWith('@theoremone.co') || isAdmin(email)) } export function isAdmin(email: string) {