diff --git a/schema.graphql b/schema.graphql index 601be3972..c7a635ecc 100644 --- a/schema.graphql +++ b/schema.graphql @@ -3022,6 +3022,7 @@ enum PermissionEnum { MANAGE_USERS MANAGE_STAFF MANAGE_SERVICE_ACCOUNTS + MANAGE_APPS MANAGE_DISCOUNTS MANAGE_PLUGINS MANAGE_GIFT_CARD diff --git a/src/configuration/index.tsx b/src/configuration/index.tsx index 8390872a3..3734d4163 100644 --- a/src/configuration/index.tsx +++ b/src/configuration/index.tsx @@ -160,7 +160,7 @@ export function createConfigurationMenu(intl: IntlShape): MenuSection[] { defaultMessage: "Manage external integrations accounts" }), icon: , - permission: PermissionEnum.MANAGE_SERVICE_ACCOUNTS, + permission: PermissionEnum.MANAGE_APPS, title: intl.formatMessage(sectionNames.serviceAccounts), url: serviceListUrl() }, diff --git a/src/fixtures.ts b/src/fixtures.ts index 2f5a00010..cfbbd5561 100644 --- a/src/fixtures.ts +++ b/src/fixtures.ts @@ -365,8 +365,8 @@ export const permissions: ShopInfo_shop_permissions[] = [ name: "Manage plugins." }, { - code: PermissionEnum.MANAGE_SERVICE_ACCOUNTS, - name: "Manage service accounts." + code: PermissionEnum.MANAGE_APPS, + name: "Manage apps." }, { code: PermissionEnum.MANAGE_WEBHOOKS, diff --git a/src/index.tsx b/src/index.tsx index 9339671bf..b6380ceb7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -253,7 +253,7 @@ const Routes: React.FC = () => { component={AttributeSection} /> diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index ce70250e2..c9ef2cfca 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -117180,7 +117180,7 @@ exports[`Storyshots Views / Services / Create service default 1`] = ` > @@ -117675,7 +117675,7 @@ exports[`Storyshots Views / Services / Create service form errors 1`] = ` > @@ -118190,7 +118190,7 @@ exports[`Storyshots Views / Services / Create service loading 1`] = ` @@ -118805,7 +118805,7 @@ exports[`Storyshots Views / Services / Service details default 1`] = ` > @@ -119494,7 +119494,7 @@ exports[`Storyshots Views / Services / Service details default token 1`] = ` > @@ -120105,7 +120105,7 @@ exports[`Storyshots Views / Services / Service details form errors 1`] = ` > @@ -120749,7 +120749,7 @@ exports[`Storyshots Views / Services / Service details loading 1`] = ` @@ -130025,7 +130025,7 @@ exports[`Storyshots Views / Staff / Staff member details loading 1`] = ` @@ -130623,7 +130623,7 @@ exports[`Storyshots Views / Staff / Staff member details not admin 1`] = ` > diff --git a/src/types/globalTypes.ts b/src/types/globalTypes.ts index 885ed727d..fc853df2e 100644 --- a/src/types/globalTypes.ts +++ b/src/types/globalTypes.ts @@ -566,7 +566,7 @@ export enum PermissionEnum { MANAGE_PAGES = "MANAGE_PAGES", MANAGE_PLUGINS = "MANAGE_PLUGINS", MANAGE_PRODUCTS = "MANAGE_PRODUCTS", - MANAGE_SERVICE_ACCOUNTS = "MANAGE_SERVICE_ACCOUNTS", + MANAGE_APPS = "MANAGE_APPS", MANAGE_SETTINGS = "MANAGE_SETTINGS", MANAGE_SHIPPING = "MANAGE_SHIPPING", MANAGE_STAFF = "MANAGE_STAFF",