Details

    Description

      Description:

      When using the JSON WS to query for a user's own teams, if the groupId is specified, then the user will not be able to view their teams due to a PrincipalException like:

      User XXXXX must have MANAGE_TEAMS permission for com.liferay.portal.kernel.model.Group YYYYY

      This shouldn't occur, since the same API without the groupId works fine

      It's been determined in PTR-3460, the solution will we to allow the user to view the teams for the specified user assuming they have UPDATE permission for them as well.

      Steps to reproduce

      1. Create a user and assign it to some groups
      2. Go to http://localhost:8080/api/jsonws and select get-user-teams method
      3. Place the userId and groupId and see if the same occurs

      Expected Results:
      teams are returned

      Actual results:
      No teams are shown and a principal exception is thrown.

       

      Reproduced in master c1e7129f0993aa30e3f345ebd66fd58bc005e8e5

      Attachments

        Activity

          People

            lily.li Lily Li
            christopher.kian Christopher Kian
            Rafaela Nascimento Rafaela Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              26 weeks, 3 days ago

              Packages

                Version Package
                7.2.X
                7.3.10 DXP U19
                7.3.X
                7.4.13 DXP U53
                Master