mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user