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

Default "User" role can be removed from default association

Details

    Description

      With the inclusion of LPS-134096, a small condition was added to return early if all default roles were already associated with the user.  This can cause problems however, because it was determined in this comment the "User" role should always be assigned to the user, even when explicitly removed from the Default User Associations entry has been removed.

      This ticket describes the opposite behavior of LPS-149351, which was closed as "Won't Fix".

      Steps to reproduce:

      1. Go to Instance Settings > Users > Default User Associations.
      2. Remove the "user" role.  Save.
      3. Create a new user.
      4. Look at the newly created user's "user_roles" entrie(s) in the DB (the "User" role will not appear in the Roles Admin portlet, so using the DB is the only way to verify it's been assigned or not).

      Expected Results:

      New user should still have the "User" role.

      Actual Results:

      New user does not have the "User" role.

      Attachments

        Activity

          People

            lily.li Lily Li
            christopher.kian Christopher Kian
            Enterprise Release HU Enterprise Release HU
            Christopher Kian Christopher Kian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 1 week, 4 days ago

              Packages

                Version Package
                7.2.X
                7.3.X
                7.4.3.26 CE GA26
                7.4.3.27 CE GA27
                Master