From 82b1180e30ec0f62afc0869d351f56901e0a5835 Mon Sep 17 00:00:00 2001 From: Mahitha-pasupuleti Date: Wed, 17 Jun 2026 10:35:18 -0500 Subject: [PATCH] fix(userProfile): update email validation in controller --- src/controllers/userProfileController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/userProfileController.js b/src/controllers/userProfileController.js index 218b6c832..748f86da9 100644 --- a/src/controllers/userProfileController.js +++ b/src/controllers/userProfileController.js @@ -432,6 +432,7 @@ const createControllerMethods = function (UserProfile, Project, cache) { const updateCommonFields = (req, record) => { const commonFields = [ 'jobTitle', + 'email', 'emailPubliclyAccessible', 'phoneNumberPubliclyAccessible', 'profilePic', @@ -572,7 +573,6 @@ const createControllerMethods = function (UserProfile, Project, cache) { if (!(await hasPermission(req.body.requestor, 'putUserProfileImportantInfo'))) return; const importantFields = [ - 'email', 'role', 'isRehireable', 'isActive',