fixed impersonating?
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-02 21:51:02) dev
|
Version 2.00.0 (2012-08-03 00:55:12) dev
|
||||||
|
|||||||
+3
-2
@@ -2591,8 +2591,9 @@ class Auth(object):
|
|||||||
redirect(next)
|
redirect(next)
|
||||||
return form
|
return form
|
||||||
|
|
||||||
def is_impersonating(self):
|
def is_impersonating(self):
|
||||||
return 'impersonator' in current.session.auth
|
return current.session.auth and \
|
||||||
|
'impersonator' in current.session.auth
|
||||||
|
|
||||||
def impersonate(self, user_id=DEFAULT):
|
def impersonate(self, user_id=DEFAULT):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user