Resolve "Fix access denied bug for customer add vehicle" #855
1 changed files with 1 additions and 4 deletions
|
|
@ -263,10 +263,7 @@ class VehicleManufacturerController extends BaseController
|
||||||
|
|
||||||
public function getVehicles(Request $req)
|
public function getVehicles(Request $req)
|
||||||
{
|
{
|
||||||
if (!$this->isGranted('battery.add') && !$this->isGranted('battery.update')) {
|
// no access check, grant all for this ajax call
|
||||||
$exception = $this->createAccessDeniedException('No access.');
|
|
||||||
throw $exception;
|
|
||||||
}
|
|
||||||
|
|
||||||
// get row data
|
// get row data
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue