Fix access to customer vehicle search for walkin and one step. #366

This commit is contained in:
Korina Cordero 2020-03-05 08:36:24 +00:00
parent 1dd476fba9
commit 6a7cb9788e

View file

@ -182,9 +182,7 @@ class CustomerController extends Controller
public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler) public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler)
{ {
if ((!$this->isGranted('jo_onestep.form')) || if ((!$this->isGranted('jo_onestep.form')) ||
(!$this->isGranted('jo_walkin.form')) || (!$this->isGranted('jo_walkin.form'))) {
(!$this->isGranted('jo_onestep.edit')) ||
(!$this->isGranted('jo_walkin.edit'))) {
$exception = $this->createAccessDeniedException('No access.'); $exception = $this->createAccessDeniedException('No access.');
throw $exception; throw $exception;
} }