mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-05 11:33:56 +00:00
Fix: Logout user on disabling profile
This commit is contained in:
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user