Again ... sorry, I have not tested all cases.
If I use is_impersonating before a login, I get
File "...\gluon\tools.py", line 2595, in is_impersonating
return 'impersonator' in current.session.auth
TypeError: argument of type 'NoneType' is not iterable
Therefore I propose to change gluon/tools.py, line 2594+2595 from
def is_impersonating(self):
return 'impersonator' in current.session.auth
to
def is_impersonating(self):
return *current.session.auth and *'impersonator' in current.session.auth
Regards, Martin
--