diff --git a/pontoon/base/middleware.py b/pontoon/base/middleware.py index 0a5419867..24a939a7e 100644 --- a/pontoon/base/middleware.py +++ b/pontoon/base/middleware.py @@ -157,7 +157,7 @@ def __init__(self, get_response): def __call__(self, request): user = request.user - if not user.is_authenticated and not user.is_active: + if not user.is_active: response = render( request, "account_disabled.html",