mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
remove dead code
This commit is contained in:
@ -71,10 +71,6 @@ class AuthRequiredMiddleware(object):
|
|||||||
|
|
||||||
# No authorization was found for the request
|
# No authorization was found for the request
|
||||||
if not authorized:
|
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
|
path = request.path_info
|
||||||
|
|
||||||
# List of URL endpoints we *do not* want to redirect to
|
# List of URL endpoints we *do not* want to redirect to
|
||||||
|
Reference in New Issue
Block a user