Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🚀 Make initial admin check case insensitve

Luke Vella1c09a764c10f
diff --git a/apps/web/src/utils/is-initial-admin.ts b/apps/web/src/utils/is-initial-admin.ts
index 03d0b9e0f..14753c9c8 100644
--- a/apps/web/src/utils/is-initial-admin.ts
+++ b/apps/web/src/utils/is-initial-admin.ts
@@ -2,6 +2,7 @@ import "server-only";
export function isInitialAdmin(email: string) {
return (
- process.env.INITIAL_ADMIN_EMAIL && email === process.env.INITIAL_ADMIN_EMAIL
+ process.env.INITIAL_ADMIN_EMAIL &&
+ email.toLowerCase() === process.env.INITIAL_ADMIN_EMAIL.toLowerCase()
);
}