Merge branch '48-fix-access-denied-bug-for-customer-add-vehicle' into 'master'
Resolve "Fix access denied bug for customer add vehicle" Closes #48 See merge request jankstudio/resq!44
This commit is contained in:
commit
d5684bd834
1 changed files with 1 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue