automatic group size for ogra
Co-Authored-By: Talha Caliskan <killerber4t@users.noreply.github.com>
This commit is contained in:
@ -36,7 +36,7 @@ public class AddUserEvent extends Event {
|
||||
if (group.getMembers().contains(user)) {
|
||||
throw new UserAlreadyExistsException(this.getClass().toString());
|
||||
}
|
||||
//andere exception
|
||||
|
||||
if (group.getMembers().size() == group.getUserMaximum()){
|
||||
throw new GroupFullException(this.getClass().toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user