mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +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'
|
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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user