Fixing the ability to delete users.
This commit is contained in:
parent
e10901bf1d
commit
cd5d28f7e8
|
@ -254,7 +254,7 @@ class UserController extends Controller
|
||||||
throw new NotFoundException('User with ID: ' . $userId . ' does not exist.');
|
throw new NotFoundException('User with ID: ' . $userId . ' does not exist.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->userService->delete($user);
|
$this->userService->deleteUser($user);
|
||||||
|
|
||||||
header('Location: '.PHPCI_URL.'user');
|
header('Location: '.PHPCI_URL.'user');
|
||||||
die;
|
die;
|
||||||
|
|
Loading…
Reference in a new issue