From 5eb9306181e32bcb32d7e7f4cf619316c0b0aca2 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 16 Jun 2010 13:00:16 +0100 Subject: [PATCH] Added to login handler as well --- api/handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/handlers.py b/api/handlers.py index 29e9412..e420c7f 100644 --- a/api/handlers.py +++ b/api/handlers.py @@ -64,7 +64,8 @@ class LoginHandler(BaseHandler): return rc.NOT_HERE d = { 'auth': 'ok', 'id': u.id, 'username': u.username, - 'email': u.email, 'groups': u.groups.all() } + 'email': u.email, 'groups': u.groups.all(), + 'staff': u.is_staff, 'superuser': u.is_superuser } if request.GET.get('pass', None) and request.GET['pass'] == u.password: return d