From 1b7cfee9e23f4db8b6e01d5b3e8698d84b756e1d Mon Sep 17 00:00:00 2001 From: eribeiro Date: Thu, 4 Mar 2021 12:49:13 -0300 Subject: [PATCH] HOT-FIX: Fixes #3366 --- sapl/base/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: