From ea7908a18e217f788a5c5958fce5a8d60b242547 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 14 Apr 2020 08:06:17 +0000 Subject: [PATCH] Fix for access. #377 --- src/Controller/CustomerController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/CustomerController.php b/src/Controller/CustomerController.php index 7030cde7..17f8e7bc 100644 --- a/src/Controller/CustomerController.php +++ b/src/Controller/CustomerController.php @@ -181,9 +181,9 @@ class CustomerController extends Controller public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler) { - if (!((!$this->isGranted('jo_onestep.form')) || - (!$this->isGranted('jo_walkin.form')) || - (!$this->isGranted('jo_in.list')))) + if (!(($this->isGranted('jo_onestep.form')) || + ($this->isGranted('jo_walkin.form')) || + ($this->isGranted('jo_in.list')))) { $exception = $this->createAccessDeniedException('No access.'); throw $exception;