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

Site Memberships menu is only visible for a role with Assign Members permission

    Details

      Description

      Requirement
      Require a role which has Site Administration role except “assign member”

      Issue
      Role without assign member permission can’t access “Site Membership” in control panel

      Behavior in 6.1.x
      Reproduction Steps
      1. Create a site role
      2. Define Permissions:
      Administration > Site Administration > Site > Assign Members
      Control Panel: Site > Site Memberships > Access in Control Panel
      3. Create a user and assign it to Liferay.com site.
      4. Assign the site role to new user
      5. Login with the new user
      Result: Site Membership is visible
      6. Remove the Assign Members permission
      Result: Site Membership will be invisible this time.

      Related code
      class:SiteMembershipsControlPanelEntry.isVisible
      if (scopeGroup.isCompany() || scopeGroup.isUser() ||
      !GroupPermissionUtil.contains(
      themeDisplay.getPermissionChecker(), scopeGroup.getGroupId(),
      ActionKeys.ASSIGN_MEMBERS))

      { return false; }

      Expected Result
      With the following permissions, user should be able to access Site Membership in the menu and view site users without the permission to assign members.

      Control Panel: Site > Site Memberships > Access in Control Panel
      Control Panel: Site > Site Memberships > VIEW

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              haoliang.wu Haoliang Wu (Inactive)
              Reporter:
              laura.li Laura Li
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 13 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE