Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129270

Roles Admin portlet should not display permissions for Instance Settings and App Manager portlets

    Details

      Description

      Reproduction Steps

      1. Add a Regular Role "Role A", grant this role the following permission

      App Manager: Access in Control Panel
      App Manager: Configuration
      App Manager: Permissions
      App Manager: Preferences
      App Manager: View
      Instance Settings: Access in Control Panel
      Instance Settings: Configuration
      Instance Settings: Permissions
      Instance Settings: Preferences
      Instance Settings: View
      Portal: View Control Panel Menu
      Purchased > Apps: Access in Control Panel
      Purchased > Apps: Configuration
      Purchased > Apps: Permissions
      Purchased > Apps: View
      

      2. Create a new User "User A", assign the "Role A" to this user.

      3. Log in Liferay with "User A", go to Control Panel, click the "Instance Settings", 

      Result: Got the error on UI "Portlet is temporarily unavailable", meanwhile, the following error can be observed in the log.

      2021-03-01 08:04:21.227 ERROR [http-nio-8080-exec-7][render_portlet_jsp:131] null
      com.liferay.portal.kernel.security.auth.PrincipalException$MustBeCompanyAdmin: User 42204 must be the company administrator to perform the action
      

      4. Click "App Manager", the same result as step 4 can be observed.

      Reproduced in 

      7.3.x: 70931fa9fa2e25ab5345768f5dbd68aed046272b

      Master:7985dd55f78d0b4e4960d1b8b07158787e32d29f

        Attachments

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            christopher.kian Christopher Kian
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Christopher Kian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              17 weeks, 2 days ago

                Packages

                Version Package
                7.2.10 DXP FP13
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                Master