Replace entire repo content with code from /root/shahikitchen-google/
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/** 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));
|
||||
}
|
||||
Reference in New Issue
Block a user