Pass in the id
This commit is contained in:
parent
35d97f153e
commit
e522813b07
1 changed files with 1 additions and 1 deletions
|
@ -33,6 +33,6 @@ class UserDeletionService
|
|||
throw new DisplayException($this->translator->get('admin/user.exceptions.user_has_servers'));
|
||||
}
|
||||
|
||||
return $this->repository->delete($user);
|
||||
return $this->repository->delete($user->id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue