From 80a2dad34e6f4f041a04479f3b5f3f6f4d887a08 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 13 May 2022 01:23:25 +0200 Subject: [PATCH] remove dead code --- InvenTree/InvenTree/middleware.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/InvenTree/InvenTree/middleware.py b/InvenTree/InvenTree/middleware.py index b6550379e2..eca078e163 100644 --- a/InvenTree/InvenTree/middleware.py +++ b/InvenTree/InvenTree/middleware.py @@ -71,10 +71,6 @@ class AuthRequiredMiddleware(object): # No authorization was found for the request if not authorized: - # A logout request will redirect the user to the login screen - if request.path_info == reverse_lazy('account_logout'): - return HttpResponseRedirect(reverse_lazy('account_login')) - path = request.path_info # List of URL endpoints we *do not* want to redirect to