From 9531c8efa62b2ca7805c3e097ef79eecb73ac0b4 Mon Sep 17 00:00:00 2001 From: Nina Menezes Date: Tue, 13 Aug 2024 14:24:57 +0100 Subject: [PATCH] Actually 404 when not logged in. --- consultation_analyser/settings/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/consultation_analyser/settings/base.py b/consultation_analyser/settings/base.py index 9edc89d4..08d516fd 100644 --- a/consultation_analyser/settings/base.py +++ b/consultation_analyser/settings/base.py @@ -67,8 +67,7 @@ "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "waffle.middleware.WaffleMiddleware", - "django.contrib.auth.middleware.LoginRequiredMiddleware", - # "consultation_analyser.middleware.LoginRequiredMiddleware404", + "consultation_analyser.middleware.LoginRequiredMiddleware404", "consultation_analyser.middleware.SupportAppStaffRequiredMiddleware", ]