From cc8c562b20a6d74bde2fa2b6ae9d12825649d246 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 29 Jul 2012 07:31:01 -0500 Subject: [PATCH] fixed is_impersonating --- VERSION | 2 +- gluon/tools.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 0a59f10e..cb99d016 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-28 23:04:24) dev +Version 2.00.0 (2012-07-29 07:30:57) dev diff --git a/gluon/tools.py b/gluon/tools.py index 86d063f5..cd8fbd3a 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2582,8 +2582,7 @@ class Auth(object): return form def is_impersonating(self): - if not current.session.auth: return None - return current.session.auth.get('impersonator',None) + return 'impersonator' in current.session.auth def impersonate(self, user_id=DEFAULT): """