1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-30 04:13:01 +00:00

[WEI] Caution check is not required to validate registrations

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-08-23 18:51:34 +02:00
parent 43d214b982
commit 9086d33158
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -918,10 +918,6 @@ class WEIValidateRegistrationView(ProtectQuerysetMixin, ProtectedCreateView):
if credit_type is None or registration.soge_credit: if credit_type is None or registration.soge_credit:
credit_amount = 0 credit_amount = 0
if not registration.caution_check and not registration.first_year:
form.add_error('bus', _("This user didn't give her/his caution check."))
return super().form_invalid(form)
if not registration.soge_credit and user.note.balance + credit_amount < fee: if not registration.soge_credit and user.note.balance + credit_amount < fee:
# Users must have money before registering to the WEI. # Users must have money before registering to the WEI.
form.add_error('bus', form.add_error('bus',