Skip to content

Commit

Permalink
check email
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerlduarte committed Aug 27, 2024
1 parent 7e50a21 commit a9d7a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/directives/withCurrentProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async function checkUserAccount(
!(
tokenUser.account === account &&
(isUserCallCenterOperator ||
tokenUser.id.toLowerCase() === currentProfile?.userId.toLowerCase())
tokenUser.user.toLowerCase() === currentProfile?.email.toLowerCase())
)
) {
throw new AuthenticationError('')
Expand Down

0 comments on commit a9d7a00

Please sign in to comment.