Skip to content

Commit 1d95c86

Browse files
committed
Add org IDs to permissions query
1 parent 02e7e47 commit 1d95c86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

site/src/api/queries/organizations.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ export const organizationsPermissions = (
175175
}
176176

177177
return {
178-
queryKey: ["organizations", "permissions"],
178+
queryKey: [
179+
"organizations",
180+
organizationIds.sort(),
181+
"permissions",
182+
],
179183
queryFn: async () => {
180184
// Only request what we need for the sidebar, which is one edit permission
181185
// per sub-link (audit page, settings page, groups page, and members page)

0 commit comments

Comments
 (0)