Skip to content

Products of hidden sub-category are shown in parent anchor category #30300

Closed
@magento-engcom-team

Description

@magento-engcom-team
Preconditions
  1. Install Magento EE 2.4-develop
  2. Indexers are in Update on Save mode
  3. Category Permission feature is enabled:
  • admin > Stores > Configuration > Catalog > Catalog > Category Permissions
  • Enable = Yes
  • Allow Browsing Category = Yes, For Everyone
  • Display Product Prices = Yes, For Everyone
  • Allow Adding to Cart = Yes, For Everyone
  • Save Config
  • Clear Cache
Steps
  1. Create category A
  • Name = A Category
  • Display Sattings > Anchor = Yes
  1. Create sub-category B
  • Parrent Category = A Category
  • Name = B Sub-Category
  • Display Sattings > Anchor = Yes
  1. Create product Simple Can you commit to repository a folder dev/tests/static ? #1 and assign it to A Category
  2. Create product Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 and assign it to B Sub-Category
  3. Go to storefront and open A Category as not logged in customer
  1. Go to admin, open B Sub-Category for edit and add Category Permission:
  • Customer Group = NOT LOGGED IN
  • Browsing Category = Deny
  • Display Product Prices = Deny
  • Add to Cart = Deny
  • Save category
  1. Go to storefront and open A Category again
(-) Actual Result

A Category still contains both products Simple #1 and Simple #2

(+) Expected Result
  1. A Category should contain only Simple Can you commit to repository a folder dev/tests/static ? #1
  2. Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 should not be displayed because browsing of B Sub-Category is denied by permissions for not logged in user, and its product should not be displayed in anchor A Category
  3. It should happen immediately after category save as Indexers are in Update on Save mode

Metadata

Metadata

Assignees

Labels

Area: CatalogCDIssue recommended for the contribution dayComponent: OtherIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.3.4Indicates 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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions