Modify access to getCustomerVehicles. #366

This commit is contained in:
Korina Cordero 2020-03-05 06:53:26 +00:00
parent 511d971814
commit dafe7e6b1c

View file

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