15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
/** Google accounts allowed to access Menu Management (/admin). */
|
|
|
|
const MENU_MANAGER_EMAILS = new Set([
|
|
'imraswe@gmail.com',
|
|
'zeeshanatnorth@gmail.com',
|
|
]);
|
|
|
|
export function normalizeEmail(email: string): string {
|
|
return email.trim().toLowerCase();
|
|
}
|
|
|
|
export function isMenuManagerEmail(email: string | null | undefined): boolean {
|
|
if (!email) return false;
|
|
return MENU_MANAGER_EMAILS.has(normalizeEmail(email));
|
|
} |