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

The "edit user" view's site role display shows roles assigned to groups that are not sites

    Details

      Description

      BUG DESCRIPTION

      Steps to Reproduce:

      1. Add a user, a site, and assign that user as a member of the site.
      2. Assign that user the "Administrator" Site Role for the created site
      3. Assert that the "Administrator" role appears in the list view for Edit User > Roles > Site Roles
      4. Find that group in the Group_ database table and change the value of the "site" column to 0
      5. In Server Administration, execute the "Clear the database cache." action.
      6. Return to the Edit User > Roles > Site Roles view

      Expected Result:
      The "Administrator" role assignment is not visible for the group that is no longer a site

      Actual Result:
      The "Administrator" role assignment is visible for the group that is no longer a site

      ---------------------------------------------------------------

      NEW STORY DESCRIPTION:
      Since Commerce is using Site role assignments with non-site groups, it makes sense to distinguish between site role assignments to groups that are sites and groups that are not sites. Users Admin will currently display all site role assignments, irrespective of whether the corresponding group is a site or not. This difference can be observed when selecting a group from the site selector popup in the "Roles" section of the edit user view. If you search the popup list. only groups that are sites will be listed. Otherwise, all groups that the user is a member of will display, site or not.

      Requirements:
      1. In the Site Role selection popup (accessible from Users Admin > Edit User > Roles > "Select" inline with "Site Roles"), only display groups that are also sites.
      2. In the list of Site Roles assigned to the user, only show Site Role assignments whose corresponding groups are sites.

      OLD STORY DESCRIPTION:
      Commerce 1.1 adds support for Accounts and requires the ability to configure Account Roles. Currently, the Roles widget is hardcoded to support Regular Roles, Site Roles, and Organization Roles types.

      To properly support Account Roles, the Roles widget needs to be extensible to support new types of roles.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              dennis.ju Dennis Ju
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                44 weeks, 5 days ago

                Packages

                Version Package
                7.1.10 DXP FP8
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master