Skip to content

Commit

Permalink
Merge branch 'master' into feat/resolve-deprecated-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vsseixaso authored Sep 3, 2024
2 parents 46c09fc + ecb0a4a commit ea2e582
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Deprecated
- Checkout orders endpoint now returns an empty array

## [2.171.1] - 2024-09-03

### Fixed
- Check user email with toLowerCase

## [2.171.0] - 2024-06-28

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "store-graphql",
"version": "2.171.0",
"version": "2.171.1",
"title": "GraphQL API for the VTEX store APIs",
"description": "GraphQL schema and resolvers for the VTEX API for the catalog and orders.",
"credentialType": "absolute",
Expand Down
3 changes: 2 additions & 1 deletion node/directives/withCurrentProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ async function checkUserAccount(
'id' in tokenUser &&
!(
tokenUser.account === account &&
(isUserCallCenterOperator || tokenUser.user === currentProfile?.email)
(isUserCallCenterOperator ||
tokenUser.user.toLowerCase() === currentProfile?.email.toLowerCase())
)
) {
throw new AuthenticationError('')
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
"follow-redirects": "^1.14.8",
"busboy": "^1.6.0"
},
"version": "2.171.0"
"version": "2.171.1"
}

0 comments on commit ea2e582

Please sign in to comment.