Browse Source

HOT-FIX: Fixes #3366

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

2
sapl/base/views.py

@ -2129,7 +2129,7 @@ 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'])

Loading…
Cancel
Save