diff --git a/sapl/base/views.py b/sapl/base/views.py index 0d4da76d7..a2f1613a6 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -2129,8 +2129,8 @@ class EditUsuarioView(PermissionRequiredMixin, UpdateView): user.save() - for g in user.groups.all(): - g.user_set.remove(user) + for g in user.groups.all().exclude(name='Votante'): + g.user_set.remove(user) groups = Group.objects.filter(id__in=data['roles']) for g in groups: