1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-26 07:02:24 +00:00

Allow organizers to submit payment forms

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-02-29 23:05:41 +01:00
parent 6b7b802d14
commit f9645b016a
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -480,7 +480,7 @@ class PaymentUpdateView(LoginRequiredMixin, UpdateView):
if self.request.user.registration.participates: if self.request.user.registration.participates:
if old_instance.valid is not False: if old_instance.valid is not False:
raise PermissionDenied(_("This payment is already valid or pending validation.")) raise PermissionDenied(_("This payment is already valid or pending validation."))
else: if old_instance.valid is False:
form.instance.valid = None form.instance.valid = None
if old_instance.receipt: if old_instance.receipt:
old_instance.receipt.delete() old_instance.receipt.delete()