Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
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:
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.

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