Resolve "Fix access denied bug for customer add vehicle" #855

Merged
jankstudio merged 1 commit from 48-fix-access-denied-bug-for-customer-add-vehicle into master 2018-03-14 11:35:14 +00:00

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();