From cdbf817db88535c48e50fad7cd8f8e91b1aa185e Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Tue, 14 Apr 2020 12:10:50 +0800 Subject: [PATCH] Remove permission check for incoming customer vehicle search #374 --- src/Controller/CustomerController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Controller/CustomerController.php b/src/Controller/CustomerController.php index 0b37b8d6..fd9417cc 100644 --- a/src/Controller/CustomerController.php +++ b/src/Controller/CustomerController.php @@ -181,12 +181,15 @@ class CustomerController extends Controller public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler) { + /* + // TODO: fix if ((!$this->isGranted('jo_onestep.form')) || (!$this->isGranted('jo_walkin.form')) || (!$this->isGranted('jo_in.list'))) { $exception = $this->createAccessDeniedException('No access.'); throw $exception; } + */ $results = $cust_handler->getCustomerVehicles($req);