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' return 'Cannot disable Administrator'
webnotes.conn.sql("update tabProfile set enabled=0 where name=%s", arg) webnotes.conn.sql("update tabProfile set enabled=0 where name=%s", arg)
login_manager = LoginManager() webnotes.login_manager.logout(user=arg)
login_manager.logout(user=arg)
return 0 return 0
# #