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): """