mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
remove dead code
This commit is contained in:
parent
6b550e0547
commit
80a2dad34e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user