{"data":{"id":"ACSD-61895","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the categories GraphQL query returns categories with allow permission even if the root category doesn't have allow permission.","categories":["GraphQL","Catalog/Product"],"components":["magento/module-catalog-permissions-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-57/acsd-61895-graphql-not-returning-categories-with-allow-permission","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-57/acsd-61895-graphql-not-returning-categories-with-allow-permission.md","blobSha":"15db7943942274a2a6860295b9124d329de14a42","description":"GraphQL responses for guest customers (using a public shared catalog with all allowed categories) do not return any categories when a private shared catalog with restrictions is created for the same categories.","stepsToReproduce":"1. Install Adobe Commerce with B2B and sample data. 1. Ensure that B2B features are enabled. 1. Create two shared catalogs: one public and one private. * Public Shared Catalog: * Assign all categories to the public catalog. * Private Shared Catalog: * Assign only the Gear category and its child categories to the private catalog. * Assign the private catalog to a test company. 1. Create a company user: * Create a user associated with the test company linked to the private shared catalog. * Ensure that the user is only able to access the Gear category and its child categories on the frontend when logged in. 1. Query categories via API: * Use API client to execute the following GraphQL query without a customer token: query Categories { categories { items { children_count children { uid name children_count children { uid name } } } } } 1. Observe the response and verify if the Gear category and other categories are returned. 1. Now query categories with a customer token: * Log in as the test company user. * Execute the same GraphQL category query, but include the customer token for the logged-in user. * Observe the response and check if only the Gear category and its child categories are returned.","introducedInQpt":"1.1.57","createdFor":["2.4.7-p1"],"documentedRange":"2.4.4 - 2.4.7-p3","scheduledFixRelease":"2.4.8"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.4 <2.4.8","path":"patches/commerce/ACSD-61895_2.4.7-p1.patch","blobSha":"06685291e4021afefddf04d252f4df2d1c6f76b7","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-61895_2.4.7-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-permissions-graph-ql/Model/Resolver/Categories/DataProvider/Category/CollectionProcessor/ApplyPermissionsOnCategory.php","change":"modified","package":"magento/module-catalog-permissions-graph-ql"}],"packages":["magento/module-catalog-permissions-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-61895 details"}