Fix for access. #377
This commit is contained in:
parent
b545750910
commit
ea7908a18e
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue