Skip to content

Commit

Permalink
Merge pull request #778 from OneCommunityGlobal/xiaow_make_certain_ro…
Browse files Browse the repository at this point in the history
…les_invisible_by_default

XiaoW_Remove admin and owner role from default invisible list
  • Loading branch information
one-community authored Mar 1, 2024
2 parents 795dac5 + 22695b5 commit 69981de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/userProfileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 69981de

Please sign in to comment.