Closed
Description
Preconditions
- Install Magento EE 2.4-develop
- Indexers are in Update on Save mode
- 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
- Create category A
- Name = A Category
- Display Sattings > Anchor = Yes
- Create sub-category B
- Parrent Category = A Category
- Name = B Sub-Category
- Display Sattings > Anchor = Yes
- Create product Simple Can you commit to repository a folder dev/tests/static ? #1 and assign it to A Category
- Create product Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 and assign it to B Sub-Category
- Go to storefront and open A Category as not logged in customer
- it contains Simple Can you commit to repository a folder dev/tests/static ? #1 and Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 products and it is expected, because anchor categories should display their own assigned products and all product of their sub-categories(!)
- 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
- Go to storefront and open A Category again
(-) Actual Result
A Category still contains both products Simple #1 and Simple #2
(+) Expected Result
- A Category should contain only Simple Can you commit to repository a folder dev/tests/static ? #1
- 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
- It should happen immediately after category save as Indexers are in Update on Save mode
Metadata
Metadata
Assignees
Labels
Issue recommended for the contribution dayGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA 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 branchMajor restrictions or short-term circumventions are required until a fix is available.