From 26801418dc7f7288ed80062c5dc6de3fae00e60e Mon Sep 17 00:00:00 2001 From: Enzo Mercanti <131273915+enzomerca@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:18:22 -0300 Subject: [PATCH 1/2] fix: add proper token validation to getUserByEmail (#169) --- CHANGELOG.md | 4 ++++ graphql/schema.graphql | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b37c5a0..5d35e33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed + +- Changed the token validation directive of the getUserByEmail operation + ## [1.44.13] - 2024-10-15 ### Fixed diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 1ca7d69..dd7e1e1 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -31,7 +31,7 @@ type Query { getUserByEmail(email: String!): [User] @cacheControl(scope: PRIVATE) @withSender - @checkUserAccess + @validateStoreUserAccess listAllUsers: [User] @cacheControl(scope: PRIVATE, maxAge: SHORT) From 24b1d01bf0ef5cd5987ecebcdc7ff20ffe93256f Mon Sep 17 00:00:00 2001 From: enzomerca <131273915+enzomerca@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:18:26 +0000 Subject: [PATCH 2/2] Release v1.45.0 --- CHANGELOG.md | 2 ++ manifest.json | 2 +- node/package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d35e33..bd86879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.45.0] - 2024-10-28 + ### Changed - Changed the token validation directive of the getUserByEmail operation diff --git a/manifest.json b/manifest.json index 2e05f97..4b98057 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "storefront-permissions", "vendor": "vtex", - "version": "1.44.13", + "version": "1.45.0", "title": "Storefront Permissions", "description": "Manage User's permissions on apps that relates to this app", "mustUpdateAt": "2022-08-28", diff --git a/node/package.json b/node/package.json index 9d3069b..9634fdf 100644 --- a/node/package.json +++ b/node/package.json @@ -1,6 +1,6 @@ { "name": "vtex.checkout-ui-custom", - "version": "1.44.13", + "version": "1.45.0", "dependencies": { "@vtex/api": "6.47.0", "atob": "^2.1.2",