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

Remove owner role for portlet permissions configuration UI

    Details

    • Fix Priority:
      2

      Description

      Changing the permissions granted to the "owner" role via portlet permissions has no effect.

      Consequently we should remove this from the UI to avoid confusing users.

      Reproduction steps:

      1. Create a role which has all the "Sites" permissions found under "Control Panel" > "Sites" > "Sites".
      2. Create a new user and assign it this role.
      3. Log in using that user.
      4. Create a widget page to the default site.
      5. Add any portlet to the page. Suggest "Calendar". (p.s. you'll find now that the user ID is the "owner" in ResourcePermission table)
      6. Log out, and log in using a company admin like [email protected]
      7. Navigate to the portlet instance and view its permissions.
      8. Assert that there is a row for "Owner" in the permissions table. It shows as having all permissions.
      9. Leave the "View" permission for the "Owner" role but uncheck it for any other role ("Guest" and "Site Member").
      10. Log out, and log in with the first user again
      11. Navigate to the page with the portlet instance
      12. Assert that the widget does not render

       Expected result: Step 8 should fail. Either the row should be removed altogether or checkboxes show as read only

       Actual result: The portlet renders a message saying the user does not have permission

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            stian.sigvartsen Stian Sigvartsen
            Participants of an Issue:
            Recent user:
            John Co
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              46 weeks, 6 days ago

                Packages

                Version Package