Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.0.6 GA
    • Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
    • Component/s: WCM
    • Labels:
    • Environment:
      Liferay 6.0.6, Tomcat 6.0.29, MySQL 5.0.88, Windows 7 - 64 bit
    • Branch Version/s:
      6.0.x
    • Similar Issues:
      Show 5 results 

      Description

      I am facing some wierd problem with Roles.

      When I assign some Organization Role to the some user using this api
      UserGroupRoleLocalServiceUtil.addUserGroupRoles(long userId, long groupId, long[] roleIds)
      , this works fine.

      But after this when I assign some Regular Role to the same user using below api
      RoleLocalServiceUtil.addUserRoles(userId, roleIds)
      , I am facing problem here.

      The problem what happens is that the Regular Role is getting assigned to the User, but the previously added Organization Role goes away.

      This is not replicating when done from Control Panel UI. I checked EditUserAction.java, there the method used for updating roles is the updateUser(....)

      I think this is the bug.

        Activity

        Hide
        Nilesh Gundecha added a comment -

        Sorry Guys, this is not the bug. I called the wrong api while updating the user which caused this problem.

        Regards,
        Nilesh.

        Show
        Nilesh Gundecha added a comment - Sorry Guys, this is not the bug. I called the wrong api while updating the user which caused this problem. Regards, Nilesh.
        Hide
        Lawrence Lee added a comment -

        Resolving Issue per reporters comment.

        Show
        Lawrence Lee added a comment - Resolving Issue per reporters comment.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 39 weeks, 4 days ago

              Development

                Structure Helper Panel