Skip to content
Snippets Groups Projects
Commit cbe3df3b authored by Brian Major's avatar Brian Major
Browse files

s1890 - fixed to remove user member

parent 9c6e670f
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,11 @@ public class RemoveUserMemberAction extends AbstractGroupAction
Group group = groupPersistence.getGroup(this.groupName);
Principal userPrincipal = AuthenticationUtil.createPrincipal(this.userID, this.userIDType);
User toRemove = getUserPersistence().getUser(userPrincipal);
User user = getUserPersistence().getAugmentedUser(userPrincipal);
User toRemove = new User();
toRemove.getIdentities().addAll(user.getIdentities());
if (!group.getUserMembers().remove(toRemove))
{
throw new MemberNotFoundException();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment