Commit 33ae59f5 authored by Hamza Dely's avatar Hamza Dely
Browse files

[activités/views] Les adhérents supprimés ne peuvent avoir d'invités

parent d52dd18c
......@@ -223,7 +223,7 @@ class ActiviteInvitationView(NoteMixin, PermissionRequiredMixin, LoginRequiredMi
form = super().get_form(form_class=form_class)
user = self.request.user
if user.has_perm("activites.invite_inviter", Acl.TOTAL):
form.fields['invite_par'].queryset = Adherent.objects.all()
form.fields['invite_par'].queryset = Adherent.objects.all(supprime=False)
form.fields['invite_par'].queryset = Adherent.objects.filter(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment