ACSD-56858: Role permissions discrepancy in B2B company admin

The ACSD-56858 patch fixes the issue where role permissions are incorrectly displayed for a restricted company admin in the B2B environment. This patch is available when the Quality Patches Tool (QPT) 1.1.47 is installed. The patch ID is ACSD-56858. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.6-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.2 - 2.4.6-p4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

The role permissions for a restricted company admin in the B2B environment are inaccurately displayed.

Steps to reproduce:

  1. Begin by setting up a company, adding a company admin and company users.
  2. Log in as the company admin at the storefront and create various roles for different users.
  3. Assign these roles as needed, such as limiting access for some tasks while allowing full access for others.
  4. Assign these roles with full access to a user other than the company admin.
  5. Log in to a non-company admin user, for e.g. a company_manager.
  6. Navigate to Roles and permission and edit the role.
  7. Notice that the permissions displayed do not match the permissions set in the company’s database for that role ID.

Expected results:

The roles and permission appear correctly for the non-company admin user.

Actual results:

The roles do not appear correctly for the non-company admin user as per the database records in the permission table.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a