{"data":{"id":"ACSD-57570","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a restricted admin user with access to a particular store cannot always see all shared catalogs to which the products are assigned or can see customers that cannot save, leading to inconsistencies in the system.","categories":["B2B","Admin"],"components":["magento/module-shared-catalog","magento/module-admin-gws","magento/module-support","magento/module-customer","magento/module-user"],"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-57570-fix-restricted-admin-access","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-57/acsd-57570-fix-restricted-admin-access.md","blobSha":"18c6b6d5a59d5501d7ccc75d9adac3e610e5d066","description":"A restricted admin user with access to a particular store cannot always see all shared catalogs or save customers, leading to inconsistencies. With multiple stores, the restricted admin cannot see new companies or custom shared catalogs.","stepsToReproduce":"1. Set up stores in the following order: * Create a new website named W2. * Create a new store view for the default website. * Create a new store named W2S2 for website W2. * Create a new store view named W2S2SV1 for the store W2S2. * Create another new store view named W2S2SV2 for the store W2S2. * Create a company for W2. 1. Assign products: * Assign some products to W1 only. * Assign some products to W2 only. * Assign some products to both W1 and W2. 1. Create a custom shared catalog and assign all products to it. 1. Create a custom admin role with access to only W2S2, not W2. 1. Assign the restricted admin user to the new custom admin role. 1. Log in as the restricted admin user. 1. Verify access: * Check which companies you can see. * Check which shared catalogs you can see. * Open the products list and verify if you can see all the shared catalogs to which the products are assigned.","introducedInQpt":"1.1.57","createdFor":["2.4.4-p3"],"documentedRange":"2.4.3 - 2.4.4-p9","scheduledFixRelease":"2.5.0"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.3 <1.3.3-p10","path":"patches/commerce/ACSD-57570_1.3.3-p3.patch","blobSha":"269b5d90caf5d573e21dbbe797263d236ff87685","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-57570_1.3.3-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-shared-catalog/Controller/Adminhtml/SharedCatalog/Configure/Save.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Model/Configure/Category.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Observer/Controller/SaveProduct.php","change":"deleted","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/Backend/Block/Adminhtml/Store/SwitcherRolePermissions.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/Catalog/Controller/Adminhtml/Product/Save.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/SharedCatalog/CollectionFilter.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/Ui/DataProvider/WebsiteRolePermissions.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Ui/DataProvider/Configure/AbstractDataProvider.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/etc/adminhtml/di.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/etc/adminhtml/events.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/view/adminhtml/web/js/grid/filters/configure/filters.js","change":"modified","package":"magento/module-shared-catalog"}],"packages":["magento/module-shared-catalog"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["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},{"package":"magento/magento2-b2b-base","constraint":">=1.4.2 <1.5.0","path":"patches/commerce/ACSD-65171_1.4.2.patch","blobSha":"e0a22c8a63d25412d2c708d5f50f1449e87a0bcc","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-65171_1.4.2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-shared-catalog/Model/SharedCatalogValidator.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/Backend/Block/Adminhtml/Store/SwitcherRolePermissions.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/SharedCatalog/CollectionFilter.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/Plugin/Ui/DataProvider/WebsiteRolePermissions.php","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/ViewModel/Store/SwitcherAllowedValues.php","change":"added","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/etc/adminhtml/di.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/etc/webapi_rest/di.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/etc/webapi_soap/di.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/view/adminhtml/layout/shared_catalog_sharedcatalog_wizard.xml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/view/adminhtml/templates/wizard/step/pricing/store/switcher.phtml","change":"modified","package":"magento/module-shared-catalog"},{"path":"vendor/magento/module-shared-catalog/view/adminhtml/templates/wizard/step/structure/store/switcher.phtml","change":"modified","package":"magento/module-shared-catalog"}],"packages":["magento/module-shared-catalog"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.4 <2.4.4-p4","path":"patches/commerce/ACSD-57570_2.4.4-p3.patch","blobSha":"ed08d6bfe4262653a2e1cba45ba12c4c7e9a6f7e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-57570_2.4.4-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-admin-gws/Model/ForceWhitelistRegistry.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Model/Plugin/Store/StoreSwitcher/ManageStoreCookie.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Observer/SetDataBeforeRoleSave.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Observer/ValidateModelLoadAfter.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Block/Adminhtml/Group/IsCustomerAllowedToAddCustomerGroupButtonPlugin.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Model/ResourceModel/Grid/Collection.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Ui/Component/Listing/Column/CanHideDeleteButton.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/CustomerBalance/Model/Creditmemo/BalancePlugin.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/StoreFilter.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/etc/adminhtml/di.xml","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-support/Console/Command/BackupDbCommand.php","change":"modified","package":"magento/module-support"}],"packages":["magento/module-admin-gws","magento/module-support"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":[],"requires":["ACSD-51291"],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.4-p4 <2.4.4-p10","path":"patches/commerce/ACSD-57570_2.4.4-p3_v1.patch","blobSha":"196204df8edad010bd7c38c0294616b2db1d6568","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-57570_2.4.4-p3_v1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-admin-gws/Model/ForceWhitelistRegistry.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Model/Plugin/Store/StoreSwitcher/ManageStoreCookie.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Observer/SetDataBeforeRoleSave.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Observer/ValidateModelLoadAfter.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Block/Adminhtml/Group/IsCustomerAllowedToAddCustomerGroupButtonPlugin.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Model/ResourceModel/Grid/Collection.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Ui/Component/Listing/Column/CanHideDeleteButton.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/CustomerBalance/Model/Creditmemo/BalancePlugin.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/StoreFilter.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/etc/adminhtml/di.xml","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-support/Console/Command/BackupDbCommand.php","change":"modified","package":"magento/module-support"}],"packages":["magento/module-admin-gws","magento/module-support"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.7 <2.4.7-p3","path":"patches/commerce/ACSD-65171_2.4.7.patch","blobSha":"89d768e9a9119b9fddce2972ceee6675c33d6e81","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-65171_2.4.7.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-admin-gws/Observer/SetDataBeforeRoleSave.php","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/Plugin/Customer/Model/ResourceModel/Customer/Collection.php","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/etc/adminhtml/di.xml","change":"modified","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/etc/webapi_rest/di.xml","change":"added","package":"magento/module-admin-gws"},{"path":"vendor/magento/module-admin-gws/etc/webapi_soap/di.xml","change":"added","package":"magento/module-admin-gws"}],"packages":["magento/module-admin-gws"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.4 <2.4.4-p10","path":"patches/os/ACSD-57570_2.4.4-p3.patch","blobSha":"d27ae6a9c9551362c0a643f3d4a1868caa64ac88","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-57570_2.4.4-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer/Block/Adminhtml/Group/AddCustomerGroupButton.php","change":"added","package":"magento/module-customer"},{"path":"vendor/magento/module-customer/Ui/Component/Listing/Column/GroupActions.php","change":"modified","package":"magento/module-customer"},{"path":"vendor/magento/module-customer/view/adminhtml/ui_component/customer_group_listing.xml","change":"modified","package":"magento/module-customer"},{"path":"vendor/magento/module-user/Controller/Adminhtml/User/Role/SaveRole.php","change":"modified","package":"magento/module-user"}],"packages":["magento/module-customer","magento/module-user"],"hasTests":false,"applicableVersions":{"magento-community":["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"],"magento-commerce":["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":["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"],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7","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-57570 details"}