Resolve "Auto-assign hub and rider" #1231

Merged
korina.cordero merged 22 commits from 374-auto-assign-hub-and-rider into master 2020-04-15 03:34:58 +00:00
Showing only changes of commit 06d0e21b1d - Show all commits

View file

@ -182,7 +182,8 @@ class CustomerController extends Controller
public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler)
{
if ((!$this->isGranted('jo_onestep.form')) ||
(!$this->isGranted('jo_walkin.form'))) {
(!$this->isGranted('jo_walkin.form')) ||
(!$this->isGranted('jo_in.list')) {
$exception = $this->createAccessDeniedException('No access.');
throw $exception;
}