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:
Kendrick Chan 2020-04-03 02:01:49 +00:00
commit 440cf35cf2

View file

@ -181,7 +181,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_in.list')) { if ((!$this->isGranted('jo_onestep.form')) ||
(!$this->isGranted('jo_walkin.form'))) {
$exception = $this->createAccessDeniedException('No access.'); $exception = $this->createAccessDeniedException('No access.');
throw $exception; throw $exception;
} }