Merge "Revert "Fix middleware to not access session fields without user auth""

This commit is contained in:
Jenkins 2013-08-15 13:11:48 +00:00 committed by Gerrit Code Review
commit 1a6140f53d

View File

@ -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: