Add access to tier 1 to customer vehicle search. #374

This commit is contained in:
Korina Cordero 2020-04-14 02:48:55 +00:00
parent 48e95ee581
commit 06d0e21b1d

View file

@ -182,7 +182,8 @@ 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_walkin.form')) ||
(!$this->isGranted('jo_in.list')) {
$exception = $this->createAccessDeniedException('No access.');
throw $exception;
}