Mercurial > public > sg101
diff gpp/core/middleware.py @ 229:08b30ac04580
Who's online middleware wasn't returning a proper response in the is_ajax case.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Jul 2010 01:25:48 +0000 |
parents | 423c39ee44e0 |
children | a2d388ed106e |
line wrap: on
line diff
--- 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: