Fix: Logout user on disabling profile

This commit is contained in:
Anand Doshi 2012-01-25 12:52:38 +05:30
parent 1605c334a6
commit 04a115e771

View File

@ -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
#