From 136b06d155ebf0fe10834b0792a2b1cec4f224f5 Mon Sep 17 00:00:00 2001 From: Matheus-Aguilar Date: Wed, 31 Jul 2024 09:29:46 -0300 Subject: [PATCH 1/2] fix: change validation directive of some operations --- CHANGELOG.md | 5 +++++ graphql/schema.graphql | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 929f041..bc6542a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +# Changed +- Changed the token validation directive of some operations + ## [1.43.2] - 2024-07-29 ### Added @@ -17,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Changed the token validation directive of some operations + ## [1.43.0] - 2024-07-23 ### Added @@ -48,6 +52,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Check user is part of buyer org instead of "active" on checkUserAccess directive ## [1.40.5] - 2024-05-22 + ### Changed - Improved metrics and logging for checkUserAccess and checkAdminAccess directives diff --git a/graphql/schema.graphql b/graphql/schema.graphql index f72f53e..9cb259b 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -146,7 +146,7 @@ type Mutation { userId: ID! costId: ID! roleId: ID - ): MutationResponse @checkAdminAccess @cacheControl(scope: PRIVATE) + ): MutationResponse @validateAdminUserAccess @cacheControl(scope: PRIVATE) setActiveUserByOrganization(userId: ID): MutationResponse @validateStoreUserAccess @@ -157,7 +157,7 @@ type Mutation { @cacheControl(scope: PRIVATE) deleteUser(id: ID!, userId: ID, email: String!): MutationResponse - @checkAdminAccess + @validateAdminUserAccess @cacheControl(scope: PRIVATE) setCurrentOrganization(orgId: ID!, costId: ID!): MutationResponse From ac043cdeee48c0eb6c0c59f329a5b0a49f428c28 Mon Sep 17 00:00:00 2001 From: Matheus-Aguilar Date: Wed, 31 Jul 2024 09:34:33 -0300 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc6542a..d2beab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -# Changed +### Changed - Changed the token validation directive of some operations ## [1.43.2] - 2024-07-29