Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4134

Commerce Permissions for user roles not working well

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Configuration Issue
    • Affects Version/s: 2.1.1
    • Fix Version/s: Gemini
    • Labels:
      None
    • Severity of Issue:
      Major

      Description

      When creating a new Regular Role, some of the Commerce permissions are not working well.

      Example:
      I've created a Regular Role called "Commerce Manager", and granted all commerce permissions available, and also all Workflow permissions. But no other permissions.

      I assign this role to a user , then log in with this user.

      The user can see the Commerce and Workflow sections in the Control Panel.

      But when the user tries to access the following sections, no data is displayed and there are errors in the log. These are the commerce sections that fail:

      • channels
      • price lists
      • discounts
      • inventory
      • shipments
      • subscriptions

       

      Errors in log like:

       

      2020-06-18 11:11:57.458 ERROR [http-nio-8011-exec-6][CommerceDataSetDataProviderResource:113] com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 43979 must have 90,90,VIEW_COMMERCE_CHANNELS permission for null
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 43979 must have 90,90,VIEW_COMMERCE_CHANNELS permission for null

       

       

       2020-06-18 11:15:24.321 ERROR [http-nio-8011-exec-4][CommerceDataSetDataProviderResource:113] com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 43979 must have 90,90,MANAGE_INVENTORY permission for null
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 43979 must have 90,90,MANAGE_INVENTORY permission for null
      

       

      And similar errors for the rest of the sections.

       

        Attachments

          Activity

            People

            Assignee:
            pietro.bocale Pietro Bocale
            Reporter:
            daniel.defrancisco Daniel De Francisco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Gemini