Initial commit v1
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Returns true if the given email matches the configured admin email.
|
||||
* The admin email is set via ADMIN_EMAIL environment variable.
|
||||
*/
|
||||
export function isAdminEmail(email: string | undefined): boolean {
|
||||
if (!email) return false
|
||||
return email.toLowerCase() === process.env.ADMIN_EMAIL?.toLowerCase()
|
||||
}
|
||||
Reference in New Issue
Block a user