Skip to content

Commit

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

XiaoW_Make new users with admin, owner, and mentor role to be invisible by default
  • Loading branch information
one-community authored Feb 29, 2024
2 parents 8a9b19c + 84cd2c9 commit 795dac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/userProfileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +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.save()
.then(() => {
Expand Down

0 comments on commit 795dac5

Please sign in to comment.