fixed bug not adding users to parentVO when autoregistration occurred

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@129849 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-07-04 12:21:01 +00:00
parent d96aed18ea
commit 153e21efe3
1 changed files with 3 additions and 0 deletions

View File

@ -721,6 +721,9 @@ public class LiferayUserManager implements UserManager {
for (GCubeMembershipRequest req : requests) {
if (req.getRequestingUser().getUserId() == requestUserId) {
MembershipRequestLocalServiceUtil.updateStatus(replyMan.getUserId(), req.getMembershipRequestId(), replyComment, 1, addUserToGroup, new ServiceContext());
//the method above just adds the user to the VRE, it is needed to add the user to the parent Sites as well (VO and RootVO)
assignUserToGroup(GroupLocalServiceUtil.getGroup(groupId).getParentGroupId(), requestUserId);
return mapLRMembershipRequest(MembershipRequestLocalServiceUtil.getMembershipRequest(req.getMembershipRequestId()));
}
}