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
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:
- Begin by setting up a company, adding a company admin and company users.
- Log in as the company admin at the storefront and create various roles for different users.
- Assign these roles as needed, such as limiting access for some tasks while allowing full access for others.
- Assign these roles with full access to a user other than the company admin.
- Log in to a non-company admin user, for e.g. a company_manager.
- Navigate to Roles and permission and edit the role.
- 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:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide
- Best practices for modifying database tables in the Commerce Implementation Playbook
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.