131,10 → 131,7 |
throw new UserException("ak.kickup.core.participant.edit.ident.wrong"); |
} |
|
if(!event.isUnregistrationAvailable()) { |
throw new UserException( |
"ak.kickup.core.participant.edit.unregistration.unavailable"); |
} |
// FIXME: check last unregistration date |
|
ParticipantManager.getInstance().delete(participant); |
request.setAttribute("event", event); |
146,10 → 143,7 |
Event event = EventManager.getInstance().get(eventId, true); |
Participant participant = ParticipantManager.getInstance().create(); |
|
if(!event.isRegistrationAvailable()) { |
throw new UserException( |
"ak.kickup.core.participant.edit.registration.unavailable"); |
} |
// FIXME: check last registration date |
|
participant.setIdent(ParticipantManager.getInstance().generateIdent()); |
participant.setEvent(event); |