From ecaed07a3da2a29c9284a98ba5d542742e868633 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 16 Oct 2012 06:19:39 -0500 Subject: [PATCH] fixed bug with auth.impersonate(0) --- VERSION | 2 +- gluon/tools.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d82d3359..822882fd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.1 (2012-10-16 06:15:40) dev +Version 2.1.1 (2012-10-16 06:19:35) dev diff --git a/gluon/tools.py b/gluon/tools.py index 8023171b..7f9eb83f 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2750,6 +2750,7 @@ class Auth(object): session.clear() session.update(cPickle.loads(auth.impersonator)) self.user = session.auth.user + return None if requested_id is DEFAULT and not request.post_vars: return SQLFORM.factory(Field('user_id', 'integer')) return SQLFORM(table_user, user.id, readonly=True)