Update 2 files

- /apps/registration/views.py
- /apps/permission/fixtures/initial.json
This commit is contained in:
nicomarg 2024-08-29 19:23:26 +02:00
parent e4aa16986f
commit 7b5eefcc0a
2 changed files with 14 additions and 1 deletions

View File

@ -3851,6 +3851,19 @@
"for_club": null, "for_club": null,
"name": "Membre de club", "name": "Membre de club",
"permissions": [ "permissions": [
1,
2,
3,
4,
5,
7,
8,
9,
10,
11,
12,
13,
14,
22 22
] ]
} }

View File

@ -300,7 +300,7 @@ class FutureUserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, FormMixin,
# join_bde = True # join_bde = True
# join_kfet = True # join_kfet = True
if not join_bde: if not join_bde or any(b for _, b in join_clubs):
# This software belongs to the BDE. # This software belongs to the BDE.
form.add_error('join_bde', _("You must join the BDE.")) form.add_error('join_bde', _("You must join the BDE."))
return super().form_invalid(form) return super().form_invalid(form)