QUALITY PATCH

ACP2E-5223: The Category Permissions index includes websites that are excluded from a customer group

The Category Permissions index includes websites that are excluded from a customer group. Quality patch ACP2E-5223 for magento/module-catalog-permissions applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5. Adobe lists the fix as scheduled for 2.4.10.

Source: Adobe Experience League

Categories
Catalog/Product
Components
magento/module-catalog-permissions
Origin
adobe-commerce-support
Since QPT
1.1.83

Issue

The Category Permissions index includes websites that are excluded from a customer group. None

Steps to reproduce

1. Create multiple websites: Main Website, Website2. 1. Create categories. 1. Create products. 1. Create customer groups with exclusions via the Admin: go to Customers > Customer Groups. - Exclude Website2 - Exclude Main Website 1. Go to Catalog > Categories, and select a category. 1. Scroll to the Category Permissions section. 1. Click Add Permission, and set: - Website: All Websites - Customer Group: All Customer Groups - Browsing Category: Allow - Display Product Prices: Allow - Add to Cart: Allow 1. Save the category.

Adobe's page lists 2.4.8 <2.4.9 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.10.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACP2E-5223. On Cloud, add ACP2E-5223 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACP2E-5223/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-catalog-permissions

magento/magento2-ee-base >=2.4.8 <2.4.9

Magento Open Source
—
Adobe Commerce
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Patch file
patches/commerce/ACP2E-5224_2.4.8-p5.patch
  • vendor/magento/module-catalog-permissions/Model/Indexer/AbstractAction.php
  • vendor/magento/module-catalog-permissions/Model/Indexer/Plugin/GroupRepository.php

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.