parent
49dd719117
commit
28f7a809a5
3 changed files with 5 additions and 3 deletions
|
@ -127,7 +127,7 @@ class UserController extends Controller
|
|||
public function delete(Request $request, User $user)
|
||||
{
|
||||
if ($request->user()->id === $user->id) {
|
||||
throw new DisplayException($this->translator->trans('admin/user.exceptions.user_has_servers'));
|
||||
throw new DisplayException($this->translator->get('admin/user.exceptions.user_has_servers'));
|
||||
}
|
||||
|
||||
$this->deletionService->handle($user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue