Merge branch '366-cmb-access-for-getcustomervehicles-2' into '270-final-cmb-fixes'
Resolve "CMB - access for getCustomerVehicles" See merge request jankstudio/resq!411
This commit is contained in:
commit
440cf35cf2
1 changed files with 2 additions and 1 deletions
|
|
@ -181,7 +181,8 @@ 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'))) {
|
||||
$exception = $this->createAccessDeniedException('No access.');
|
||||
throw $exception;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue