Steps to reproduce the issue:
1. Start Liferay DXP 7.4.
2. Create a user with the sales agent role and also assign the permissions to view the products, account, and account groups.
3. Create 2-3 account groups.
4. Now, log in with the created user.
5. Navigate to the products > Visibility and enable the account groups.
6. Click on the "+" icon, and add the account groups.
Actual Result: As soon as the user added the product, it's redirecting to the product listing page.
Expected Result: The account groups must be added if the user has the custom roles.
- Liferay DXP 7.4
- Commerce 4.0
- The observed behavior is a known Liferay DXP bug which has been addressed in Liferay DXP 7.4 Update 77.