Modify access to getCustomerVehicles. #366
This commit is contained in:
parent
511d971814
commit
dafe7e6b1c
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue