Skip to content

Commit

Permalink
Fix: Only checks if user is active
Browse files Browse the repository at this point in the history
Signed-off-by: RafaelJohn9 <[email protected]>
  • Loading branch information
RafaelJohn9 committed Jan 22, 2025
1 parent 88316bd commit ac0fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontoon/base/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ac0fcc1

Please sign in to comment.