fixed issue 672 (auth.is_impersonating), thanks mweissen

This commit is contained in:
Massimo Di Pierro
2012-02-26 15:34:46 -06:00
parent f50cb45987
commit 9c871d3f3b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-02-25 15:49:09) stable
Version 1.99.4 (2012-02-26 15:34:08) stable
+2 -1
View File
@@ -2451,7 +2451,8 @@ class Auth(object):
return form
def is_impersonating(self):
return current.session.auth.impersonator
if not current.session.auth: return None
return current.session.auth.get('impersonator',None)
def impersonate(self, user_id=DEFAULT):
"""