Merge "Revert "Fix middleware to not access session fields without user auth""
This commit is contained in:
commit
1a6140f53d
@ -46,7 +46,6 @@ class HorizonMiddleware(object):
|
||||
|
||||
def process_request(self, request):
|
||||
""" Adds data necessary for Horizon to function to the request. """
|
||||
if hasattr(request, "user") and request.user.is_authenticated():
|
||||
# Activate timezone handling
|
||||
tz = request.session.get('django_timezone')
|
||||
if tz:
|
||||
|
Loading…
Reference in New Issue
Block a user