8987a02975
* Reapply Manifold for Teams config changes
* Add Firebase config for TheoremOne
* Fix build
* Check in Firebase indexes
* Whitelist admins and new users by email
* Fix typo 🤦♂️
15 lines
381 B
TypeScript
15 lines
381 B
TypeScript
export function isWhitelisted(email?: string) {
|
|
return true
|
|
// e.g. return email.endsWith('@theoremone.co') || isAdmin(email)
|
|
}
|
|
|
|
export function isAdmin(email: string) {
|
|
const ADMINS = [
|
|
'akrolsmir@gmail.com', // Austin
|
|
'jahooma@gmail.com', // James
|
|
'taowell@gmail.com', // Stephen
|
|
'manticmarkets@gmail.com', // Manifold
|
|
]
|
|
return ADMINS.includes(email)
|
|
}
|