From cd5d28f7e89f4a6cad600edddc11ba15151123f3 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 31 Jul 2014 12:10:34 +0100 Subject: [PATCH] Fixing the ability to delete users. --- PHPCI/Controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Controller/UserController.php b/PHPCI/Controller/UserController.php index f9c4fced..2a675e9d 100644 --- a/PHPCI/Controller/UserController.php +++ b/PHPCI/Controller/UserController.php @@ -254,7 +254,7 @@ class UserController extends Controller throw new NotFoundException('User with ID: ' . $userId . ' does not exist.'); } - $this->userService->delete($user); + $this->userService->deleteUser($user); header('Location: '.PHPCI_URL.'user'); die;