Fix access to customer vehicle search for walkin and one step. #366
This commit is contained in:
parent
1dd476fba9
commit
6a7cb9788e
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue