diff --git a/backend/src/main/kotlin/hu/bme/sch/cmsch/component/admission/AdmissionService.kt b/backend/src/main/kotlin/hu/bme/sch/cmsch/component/admission/AdmissionService.kt index e8563512..2d16cca9 100644 --- a/backend/src/main/kotlin/hu/bme/sch/cmsch/component/admission/AdmissionService.kt +++ b/backend/src/main/kotlin/hu/bme/sch/cmsch/component/admission/AdmissionService.kt @@ -108,7 +108,7 @@ open class AdmissionService( } else { val ticketByEmail = ticketRepository.findTop1ByEmailAndUseCmschIdFalse(user.email).firstOrNull() - if (ticketByEmail != null) { + if (user.email.isNotEmpty() && ticketByEmail != null) { return ticketByEmail }