Skip to content

Commit

Permalink
Filter orgs to only those with develop_apps permission
Browse files Browse the repository at this point in the history
  • Loading branch information
amcaplan committed Dec 5, 2024
1 parent 2926cb0 commit bfdf841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export const ListOrganizations = {
{
kind: 'Field',
name: {kind: 'Name', value: 'organizations'},
arguments: [
{
kind: 'Argument',
name: {kind: 'Name', value: 'hasPermission'},
value: {kind: 'StringValue', value: 'develop_apps', block: false},
},
],
selectionSet: {
kind: 'SelectionSet',
selections: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query ListOrganizations {
currentUserAccount {
uuid
organizations {
organizations(hasPermission: "develop_apps") {
nodes {
id
name
Expand Down

0 comments on commit bfdf841

Please sign in to comment.