diff --git a/src/configuration/index.tsx b/src/configuration/index.tsx index 9b434deab..1a41b7f78 100644 --- a/src/configuration/index.tsx +++ b/src/configuration/index.tsx @@ -44,7 +44,7 @@ export function createConfigurationMenu(intl: IntlShape): MenuSection[] { id: "configurationMenuAttributes" }), icon: , - permission: PermissionEnum.MANAGE_PRODUCTS, + permission: PermissionEnum.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES, title: intl.formatMessage(sectionNames.attributes), url: attributeListUrl() }, @@ -54,7 +54,7 @@ export function createConfigurationMenu(intl: IntlShape): MenuSection[] { id: "configurationMenuProductTypes" }), icon: , - permission: PermissionEnum.MANAGE_PRODUCTS, + permission: PermissionEnum.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES, title: intl.formatMessage(sectionNames.productTypes), url: productTypeListUrl() } diff --git a/src/fixtures.ts b/src/fixtures.ts index df7afbf9b..827798754 100644 --- a/src/fixtures.ts +++ b/src/fixtures.ts @@ -345,6 +345,10 @@ export const permissions: ShopInfo_shop_permissions[] = [ code: PermissionEnum.MANAGE_PRODUCTS, name: "Manage products." }, + { + code: PermissionEnum.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES, + name: "Manage product types and attributes." + }, { code: PermissionEnum.MANAGE_SETTINGS, name: "Manage settings." @@ -439,6 +443,11 @@ export const adminUserPermissions: User_userPermissions[] = [ code: PermissionEnum.MANAGE_PRODUCTS, name: "Manage products." }, + { + __typename: "UserPermission", + code: PermissionEnum.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES, + name: "Manage product types and attributes." + }, { __typename: "UserPermission", code: PermissionEnum.MANAGE_SERVICE_ACCOUNTS, diff --git a/src/index.tsx b/src/index.tsx index 9317abeea..cba960793 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -191,7 +191,9 @@ const Routes: React.FC = () => { component={ProductSection} /> @@ -231,7 +233,9 @@ const Routes: React.FC = () => { component={NavigationSection} /> diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 795acbb16..c640f021f 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -53828,63 +53828,6 @@ exports[`Storyshots Views / Configuration partial access 1`] = ` -
-
-
- Product Settings -
-
-
-
-
-
- -
-
-
- Taxes -
-
- Manage how your store charges tax -
-
-
-
-
-
@@ -53957,46 +53900,6 @@ exports[`Storyshots Views / Configuration partial access 1`] = `
-
-
-
- -
-
-
- Site Settings -
-
- View and update your site settings -
-
-
-
+
+
+ + + + + + +
+
+ + Manage product types and attributes + +
+
+
+
+ + + + + + +
+
+ + Manage product types and attributes + +
+
+
+
+ + + + + + +
+
+ + Manage product types and attributes + +
+
+
+
+ + + + + + +
+
+ + Manage product types and attributes + +
+
+
+
+ + + + + + +
+
+ + Manage product types and attributes + +
+