Skip to content

Commit

Permalink
fix: change token validation directive of some operations (#153)
Browse files Browse the repository at this point in the history
* fix: change token validation directive of some operations

* docs: update changelog
  • Loading branch information
Matheus-Aguilar authored Aug 7, 2024
1 parent ea773c7 commit b6f5959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b6f5959

Please sign in to comment.