fixed issue 672 (auth.is_impersonating), thanks mweissen
This commit is contained in:
@@ -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
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user