Skip to content

Category Permission Validation with REST API on Magento 2.4.4-p1 (EE) #36328

Open
@achourey

Description

@achourey

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

  1. 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.
  2. Go to any of the product and assign that product into a particular Category
  3. Go to that category and restrict all customer group.
  4. 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

Labels

Adobe CommerceThe issue related to the Adobe Commerce(EE) or B2B functionalityArea: APIsComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.4.5-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions