Skip to content

Cannot save product in store view scope without Magento_Catalog::edit_product_design #31973

Closed
@SukimaSwitch

Description

@SukimaSwitch

Preconditions

Magento 2.4-develop;
Magento Open Source 2.3.5-p2;

Steps to reproduce

  1. Create a simple product;
  2. Use an administrator account, set the "Schedule Design Update" attribute under the store view scope (Default Store View for ex.) for any product, and then save changes;
    image
  3. Go to Admin -> System -> Permissions -> User Roles and create a new role with the entire Catalog tree selected, except for Catalog > Inventory > Products > Edit Product Design;
    Screenshot from 2021-02-05 10-47-15
  4. Create a user assigned to this new role and log into the backend with it;
  5. Edit the same product, change the product name and save changes under the store view scope (Default Store View);

Expected result

(/) The changes can be saved successfully.

Actual result

(x) Raise an error and failed to save.
Error message: Not allowed to edit the product's design attributes
image

In the exception.log file:
Screenshot from 2021-02-05 11-10-44

Metadata

Metadata

Assignees

Labels

Component: AdminComponent: UserIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: ready for confirmationPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.3.5-p2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions