From b6f5959683805da752fa138dfad63a68f06798eb Mon Sep 17 00:00:00 2001 From: Matheus-Aguilar <43484640+Matheus-Aguilar@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:27:40 -0300 Subject: [PATCH] fix: change token validation directive of some operations (#153) * fix: change token validation directive of some operations * docs: update changelog --- CHANGELOG.md | 3 +++ graphql/schema.graphql | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9950d10..36b4be9 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.3] - 2024-07-31 ### Changed diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 9cb259b..2c9a289 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -124,7 +124,7 @@ type Mutation { canImpersonate: Boolean = false email: String name: String - ): MutationResponse @checkAdminAccess @cacheControl(scope: PRIVATE) + ): MutationResponse @validateAdminUserAccess @cacheControl(scope: PRIVATE) addUser( id: ID @@ -135,7 +135,7 @@ type Mutation { canImpersonate: Boolean = false name: String! email: String! - ): MutationResponse @checkAdminAccess @cacheControl(scope: PRIVATE) + ): MutationResponse @validateAdminUserAccess @cacheControl(scope: PRIVATE) addCostCenterToUser(costId: ID!, userId: ID!): MutationResponse @validateStoreUserAccess @@ -153,7 +153,7 @@ type Mutation { @cacheControl(scope: PRIVATE) impersonateUser(userId: ID): MutationResponse - @checkUserAccess + @validateStoreUserAccess @cacheControl(scope: PRIVATE) deleteUser(id: ID!, userId: ID, email: String!): MutationResponse