diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 437616bf8..ef0754f92 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -420,7 +420,7 @@ class AutorForm(ModelForm): user_old.groups.remove(grupo) elif user_old: user_old.groups.remove(grupo) - else: + elif user_old: user_old.groups.remove(grupo) return autor