Add access to tier 1 to customer vehicle search. #374
This commit is contained in:
parent
48e95ee581
commit
06d0e21b1d
1 changed files with 2 additions and 1 deletions
|
|
@ -182,7 +182,8 @@ 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_in.list')) {
|
||||||
$exception = $this->createAccessDeniedException('No access.');
|
$exception = $this->createAccessDeniedException('No access.');
|
||||||
throw $exception;
|
throw $exception;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue