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 authored Jun 18, 2024
1 parent 4bd369b commit 3231bb5
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 @@ -13327,7 +13327,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 3231bb5

Please sign in to comment.