Skip to content

Commit 31ee2c2

Browse files
authored
Merge pull request #5036 from Shopify/filter-orgs-by-permission
Filter orgs to only those with develop_apps permission
2 parents 3c10c59 + 6c74a9e commit 31ee2c2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/app/src/cli/api/graphql/business-platform-destinations/generated/organizations.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export const ListOrganizations = {
2929
{
3030
kind: 'Field',
3131
name: {kind: 'Name', value: 'organizations'},
32+
arguments: [
33+
{
34+
kind: 'Argument',
35+
name: {kind: 'Name', value: 'hasAccessToDestination'},
36+
value: {kind: 'EnumValue', value: 'DEVELOPER_DASHBOARD'},
37+
},
38+
],
3239
selectionSet: {
3340
kind: 'SelectionSet',
3441
selections: [

packages/app/src/cli/api/graphql/business-platform-destinations/queries/organizations.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
query ListOrganizations {
22
currentUserAccount {
33
uuid
4-
organizations {
4+
organizations(hasAccessToDestination: DEVELOPER_DASHBOARD) {
55
nodes {
66
id
77
name

0 commit comments

Comments
 (0)