From f4107d8a39ddc77b3efd36b1cdffc0fe49782b8a Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 12 May 2023 17:02:27 -0300 Subject: [PATCH] fix: do not return services --- apps/meteor/app/lib/server/functions/getFullUserData.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/meteor/app/lib/server/functions/getFullUserData.ts b/apps/meteor/app/lib/server/functions/getFullUserData.ts index 9be81206436..959393b0016 100644 --- a/apps/meteor/app/lib/server/functions/getFullUserData.ts +++ b/apps/meteor/app/lib/server/functions/getFullUserData.ts @@ -94,5 +94,9 @@ export async function getFullUserDataByIdOrUsername( user.canViewAllInfo = canViewAllInfo; + if (user?.services?.password) { + (user.services.password as any) = true; + } + return user; }