From d2d6a7c8c68674450be136f4f02ceb9d57755afe Mon Sep 17 00:00:00 2001 From: David Chua Date: Wed, 9 Oct 2024 14:31:33 +0000 Subject: [PATCH] Update insert login_required middleware to allow auth middleware --- cms/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/settings.py b/cms/settings.py index f816b29..711a432 100644 --- a/cms/settings.py +++ b/cms/settings.py @@ -484,7 +484,7 @@ else: if GLOBAL_LOGIN_REQUIRED: # this should go after the AuthenticationMiddleware middleware - MIDDLEWARE.insert(5, "login_required.middleware.LoginRequiredMiddleware") + MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware") LOGIN_REQUIRED_IGNORE_PATHS = [ r'/accounts/login/$', r'/accounts/logout/$',