From 4ce40e63f3f56a876d06d901dbf80a81c437ec93 Mon Sep 17 00:00:00 2001 From: RafaelJohn9 Date: Wed, 22 Jan 2025 22:08:18 +0300 Subject: [PATCH] Update: Changed position of the middleware Signed-off-by: RafaelJohn9 --- pontoon/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pontoon/settings/base.py b/pontoon/settings/base.py index 0336bd9c5..9b495aecc 100644 --- a/pontoon/settings/base.py +++ b/pontoon/settings/base.py @@ -329,13 +329,13 @@ def _default_from_email(): "django.middleware.common.CommonMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", - "pontoon.base.middleware.AccountDisabledMiddleware", "pontoon.base.middleware.ThrottleIpMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "csp.middleware.CSPMiddleware", "pontoon.base.middleware.EmailConsentMiddleware", + "pontoon.base.middleware.AccountDisabledMiddleware", ) CONTEXT_PROCESSORS = (