fixed is_impersonating
This commit is contained in:
1 parent
606d9d7ee4
commit
cc8c562b20
2 files changed
+2
-3
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-07-28 23:04:24) dev
|
||||
Version 2.00.0 (2012-07-29 07:30:57) dev
|
||||
+1
-2
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user