Fix: Logout user on disabling profile
This commit is contained in:
parent
1605c334a6
commit
04a115e771
@ -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
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user