1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-03 06:03:58 +02:00

Minor fix

This commit is contained in:
Ehouarn
2025-08-02 23:42:04 +02:00
parent d1aa1edd09
commit cf53b480db

View File

@@ -818,7 +818,7 @@ class WEIUpdateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Update
form.fields["deposit_type"].required = True
form.fields["deposit_type"].help_text = _("Choose how you want to pay the deposit")
if not self.object.first_year and self.object.deposit_type == 'check':
if not self.object.first_year and self.request.user.has_perm("wei.change_weiregistration_deposit_given") and self.object.deposit_type == 'check':
form.fields["deposit_given"] = forms.BooleanField(
required=False,
initial=self.object.deposit_given,