Fix for access. #377

This commit is contained in:
Korina Cordero 2020-04-14 08:06:17 +00:00
parent b545750910
commit ea7908a18e

View file

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