From 04a115e771aecd13b1aea7f6c1d88e07055402fa Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 25 Jan 2012 12:52:38 +0530 Subject: [PATCH] Fix: Logout user on disabling profile --- erpnext/home/page/my_company/my_company.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/home/page/my_company/my_company.py b/erpnext/home/page/my_company/my_company.py index c239162797..dcd54e1062 100644 --- a/erpnext/home/page/my_company/my_company.py +++ b/erpnext/home/page/my_company/my_company.py @@ -34,8 +34,7 @@ def disable_profile(arg=''): return 'Cannot disable Administrator' webnotes.conn.sql("update tabProfile set enabled=0 where name=%s", arg) - login_manager = LoginManager() - login_manager.logout(user=arg) + webnotes.login_manager.logout(user=arg) return 0 #