Remove permission check for incoming customer vehicle search #374

This commit is contained in:
Kendrick Chan 2020-04-14 12:10:50 +08:00
parent a738aac7e7
commit cdbf817db8

View file

@ -181,12 +181,15 @@ class CustomerController extends Controller
public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler)
{
/*
// TODO: fix
if ((!$this->isGranted('jo_onestep.form')) ||
(!$this->isGranted('jo_walkin.form')) ||
(!$this->isGranted('jo_in.list'))) {
$exception = $this->createAccessDeniedException('No access.');
throw $exception;
}
*/
$results = $cust_handler->getCustomerVehicles($req);