Skip to content

Commit

Permalink
Fix group permission issue for oauth users (#4963)
Browse files Browse the repository at this point in the history
* replace `user` query with `me`

* changeset

* change changeset
  • Loading branch information
Cloud11PL committed Jun 19, 2024
1 parent 63c4238 commit bd4588a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-cameras-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

You can now properly edit permission groups when you have full access
2 changes: 1 addition & 1 deletion src/graphql/hooks.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13181,7 +13181,7 @@ export const PermissionGroupDetailsDocument = gql`
permissionGroup(id: $id) {
...PermissionGroupDetails
}
user(id: $userId) {
user: me {
editableGroups {
id
}
Expand Down
2 changes: 1 addition & 1 deletion src/permissionGroups/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const permissionGroupDetailsQuery = gql`
permissionGroup(id: $id) {
...PermissionGroupDetails
}
user(id: $userId) {
user: me {
editableGroups {
id
}
Expand Down

0 comments on commit bd4588a

Please sign in to comment.