refactor: fix typo in impersonated
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
a121b90d7f
commit
332e22f00b
2 changed files with 2 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ class LoginManager:
|
|||
current_user = frappe.session.user
|
||||
self.login_as(user)
|
||||
# Flag this session as impersonated session, so other code can log this.
|
||||
frappe.local.session_obj.set_impersonsated(current_user)
|
||||
frappe.local.session_obj.set_impersonated(current_user)
|
||||
|
||||
def logout(self, arg="", user=None):
|
||||
if not user:
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ class Session:
|
|||
|
||||
return updated_in_db
|
||||
|
||||
def set_impersonsated(self, original_user):
|
||||
def set_impersonated(self, original_user):
|
||||
self.data.data.impersonated_by = original_user
|
||||
# Forcefully flush session
|
||||
self.update(force=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue