Browse Source

HOT-FIX: Fixes #3366

pull/3369/head
eribeiro 4 years ago
parent
commit
1b7cfee9e2
  1. 4
      sapl/base/views.py

4
sapl/base/views.py

@ -2129,8 +2129,8 @@ class EditUsuarioView(PermissionRequiredMixin, UpdateView):
user.save() user.save()
for g in user.groups.all(): for g in user.groups.all().exclude(name='Votante'):
g.user_set.remove(user) g.user_set.remove(user)
groups = Group.objects.filter(id__in=data['roles']) groups = Group.objects.filter(id__in=data['roles'])
for g in groups: for g in groups:

Loading…
Cancel
Save