Skip to content

Commit

Permalink
Merge pull request #1148 from OneCommunityGlobal/ashish_fix_rehireabl…
Browse files Browse the repository at this point in the history
…e_status

Ashish_Fix_Rehireable_Status
  • Loading branch information
one-community authored Dec 14, 2024
2 parents 3d26e8f + d66fd7f commit b4966b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ const canRequestorUpdateUser = async (requestorId, targetUserId) => {
// Find out a list of protected email account ids and allowed email id
allowedEmailAccountIds = query
.filter(({ email }) => ALLOWED_EMAIL_ACCOUNT.includes(email))
.map(({ _id }) => _id);
.map(({ _id }) => _id.toString());
protectedEmailAccountIds = query
.filter(({ email }) => PROTECTED_EMAIL_ACCOUNT.includes(email))
.map(({ _id }) => _id);
.map(({ _id }) => _id.toString());

serverCache.setCache('protectedEmailAccountIds', protectedEmailAccountIds);
serverCache.setCache('allowedEmailAccountIds', allowedEmailAccountIds);
Expand Down

0 comments on commit b4966b1

Please sign in to comment.