1

fix rename errors

Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-19 00:20:14 +01:00
parent fdd9d44aac
commit 2192751a01
7 changed files with 18 additions and 14 deletions

View File

@ -21,10 +21,12 @@ public class UpdateRoleEvent extends Event {
super(groupId, userId);
this.newRole = newRole;
}
@Override
public void applyEvent(Group group) throws UserNotFoundException {
if (group.getRoles().containsKey(this.userId)) {
group.getRoles().put(this.userId, this.newRole);
return;
}
throw new UserNotFoundException(this.getClass().toString());