diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index 15059510..4ada7063 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -3276,7 +3276,7 @@ class APIController extends Controller implements LoggedController if ($clean_plate) { // find the customer vehicle and get the vehicle - $cv = $em->getRepository(CustomerVehicle::class)->findOneBy(['plate_number' => $clean_plate]); + $cv = $em->getRepository(CustomerVehicle::class)->findOneBy(['plate_number' => $clean_plate, 'customer' => $customer]); if ($cv != null) { // confirm that customer vehicle found does belong to customer