Commit cbe3df3b authored by Brian Major's avatar Brian Major
Browse files

s1890 - fixed to remove user member

parent 9c6e670f
......@@ -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();
if (!group.getUserMembers().remove(toRemove))
throw new MemberNotFoundException();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment