Skip to content

Commit

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

* docs: update changelog
  • Loading branch information
Matheus-Aguilar authored Jul 31, 2024
1 parent a95d251 commit fdb728c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 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.2] - 2024-07-29

### Added
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fdb728c

Please sign in to comment.