Skip to content

Commit

Permalink
fixed issue 672 (auth.is_impersonating), thanks mweissen
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Feb 26, 2012
1 parent f50cb45 commit 9c871d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version 1.99.4 (2012-02-25 15:49:09) stable
Version 1.99.4 (2012-02-26 15:34:08) stable
3 changes: 2 additions & 1 deletion gluon/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,8 @@ def profile(
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):
"""
Expand Down

0 comments on commit 9c871d3

Please sign in to comment.