Update back/src/Model/Group.ts
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
parent
50147db895
commit
329f721998
@ -109,7 +109,7 @@ export class Group implements Movable {
|
||||
includes(user: User): boolean {
|
||||
let found = false;
|
||||
this.users.forEach((currentUser: User) => {
|
||||
if (currentUser.name === user.name) {
|
||||
if (currentUser.id === user.id) {
|
||||
found = true;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user