Remove access check for ajax call on vehicle manufacturer #48

This commit is contained in:
Kendrick Chan 2018-03-14 19:34:15 +08:00
parent aa14f9bfb7
commit 48f30f4dd9

View file

@ -263,10 +263,7 @@ class VehicleManufacturerController extends BaseController
public function getVehicles(Request $req)
{
if (!$this->isGranted('battery.add') && !$this->isGranted('battery.update')) {
$exception = $this->createAccessDeniedException('No access.');
throw $exception;
}
// no access check, grant all for this ajax call
// get row data
$em = $this->getDoctrine()->getManager();