fix: use correct condition for available slots

This commit is contained in:
Björn Fromme
2025-12-04 10:37:41 +01:00
parent 306a3abc48
commit 4e92eebb39
@@ -34,7 +34,7 @@ class CreateController extends AbstractController
// Only allow applications on empty slots
$availableSlots = (int) $assignment->getAvailableDispositions();
if (0 < $availableSlots) {
if (0 > $availableSlots) {
$this->addFlash('error', 'Auf diesem Einsatz sind bereits alle Plätze belegt');
return $this->redirectToRoute('app_teamer_index');