# HG changeset patch # User Brian Neal # Date 1278984348 0 # Node ID 08b30ac04580270e3d7ff44abf9557afe2b369e7 # Parent d77e0dc772addd0f99547ffab84389e4cac8e3e8 Who's online middleware wasn't returning a proper response in the is_ajax case. diff -r d77e0dc772ad -r 08b30ac04580 gpp/core/middleware.py --- a/gpp/core/middleware.py Sun Jul 11 21:03:41 2010 +0000 +++ b/gpp/core/middleware.py Tue Jul 13 01:25:48 2010 +0000 @@ -39,7 +39,7 @@ Keep track of who is online. """ if request.is_ajax(): - return + return response if request.user.is_authenticated(): if request.COOKIES.get(ONLINE_COOKIE) is None: