diff --git a/RIGS/forms.py b/RIGS/forms.py index 6846a9cb..55b11632 100644 --- a/RIGS/forms.py +++ b/RIGS/forms.py @@ -57,7 +57,7 @@ class ProfileChangeForm(UserChangeForm): class CheckApprovedForm(AuthenticationForm): def confirm_login_allowed(self, user): - if not user.is_approved: + if not user.is_approved and not user.is_superuser: raise forms.ValidationError("Your account hasn't been approved by an administrator yet. Please check back in a few minutes!") return AuthenticationForm.confirm_login_allowed(self, user)