Open
Description
Preconditions and environment
- Adobe Commerce 2.4.5-p1 & 2.4.4-p1
- The "Category Permission" feature is not working with REST API
Steps to reproduce
- Enable Category permission from "Stores >> Configuration >> Catalog >> Catalog >> Category Permissions" with "Yes for everyone" option to allow categories, add to cart etc . Because this feature is not enabled by default.
- Go to any of the product and assign that product into a particular Category
- Go to that category and restrict all customer group.
- Now use following Rest APIs to add that product for restricted customer groups:
- POST: /rest/V1/integration/customer/token
- GET: /rest/V1/carts/mine
- POST: /rest/V1/carts/mine/items
Expected result
The product should not be added to the cart for the customer because it is restricted.
Actual result
The product added to the cart for the restricted customer and the customer is able to place the order with the restricted product.
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
The issue related to the Adobe Commerce(EE) or B2B functionalityUse with concrete module component label E.g. "Component: Api" + "Catalog"Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch