From 0e192c786c27598d068374a73cbb5b9cff929b26 Mon Sep 17 00:00:00 2001 From: Aydan Pirani Date: Mon, 26 Aug 2024 18:27:15 -0500 Subject: [PATCH] Fixed issue --- src/services/auth/auth-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/auth/auth-utils.ts b/src/services/auth/auth-utils.ts index 72a6545..424310c 100644 --- a/src/services/auth/auth-utils.ts +++ b/src/services/auth/auth-utils.ts @@ -19,14 +19,14 @@ export function createGoogleStrategy(device: string) { const email = profile._json.email; // Check if user is admin -> if so, add ADMIN role to their list - const isAdmin = email && Config.AUTH_ADMIN_WHITELIST.has(email); + // const isAdmin = email && Config.AUTH_ADMIN_WHITELIST.has(email); Database.ROLES.findOneAndUpdate( { userId: userId }, { displayName, email, - ...(isAdmin && { roles: { $addToSet: Role.Enum.ADMIN } }), + // ...(isAdmin && { roles: { $addToSet: Role.Enum.ADMIN } }), }, { upsert: true } )