magento2: Cannot save product in store view scope without Magento_Catalog::edit_product_design ACL

Preconditions

  1. Magento Open Source 2.4-develop from GitHub (6b6f428c4b938c209658eb5d75d84b72503cbce0);
  2. Default installation without sample data;
  3. A second website+store+store view is configured;

Steps to reproduce

  1. Under System > Permissions > User Roles, create a new role with the entire Catalog tree selected, except for Catalog > Inventory > Products > Edit Product Design;

  1. Create a user assigned to this new role and log into the backend with it;
  2. Add a simple product with title test 1. Under Products in Websites, select both websites. Save the product;
  3. Still in the product edit form, change the scope to the second store view;
  4. Under the Design tab, check that you are indeed not allowed to change the attributes (fields are disabled):

Screenshot from 2020-05-05 11-43-57

  1. For the Name field, uncheck the Use Default Value option and give it a new name (i.e.: test 2);
  2. Save the product;

Expected result

  1. The new name was saved for the selected store view;

Actual result

  1. Not allowed to edit the product's design attributes error.

Screenshot from 2020-05-05 11-49-12

The same happens for other fields, like product name or description.

Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (16 by maintainers)

Most upvoted comments

@kassner

The issue was closed by mistake. at this moment Magento team has fixed it, internal PR is ready(CR and QA passed) but not merged into the main code-base. As soon as it will be merged related commits can be found using search based on internal ticket key MC-34156 Example: https://github.com/magento/magento2/search?q=MC-34156&type=commits

Sorry for inconvenience