From 22695b500b3821444f09b002d8621fecbdbef238 Mon Sep 17 00:00:00 2001 From: wang9hu Date: Thu, 29 Feb 2024 16:35:44 -0800 Subject: [PATCH] remove admin and owner role from default invisible list --- 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 66668cc7d..7fabddb70 100644 --- a/src/controllers/userProfileController.js +++ b/src/controllers/userProfileController.js @@ -246,7 +246,7 @@ const userProfileController = function (UserProfile) { up.bioPosted = req.body.bioPosted || 'default'; up.isFirstTimelog = true; up.actualEmail = req.body.actualEmail; - up.isVisible = !['Administrator', 'Mentor', 'Owner'].includes(req.body.role); + up.isVisible = !['Mentor'].includes(req.body.role); up.save() .then(() => {