Logout session if user deleted
This commit is contained in:
parent
043b0f26bd
commit
7949b33b70
@ -47,6 +47,9 @@ def delete_user(args):
|
||||
if cint(webnotes.conn.get_value('Control Panel', None, 'sync_with_gateway')):
|
||||
from server_tools.gateway_utils import remove_user_gateway
|
||||
remove_user_gateway(args['user'])
|
||||
|
||||
webnotes.login_manager.logout(user=args['user'])
|
||||
|
||||
|
||||
#
|
||||
# add user
|
||||
|
Loading…
x
Reference in New Issue
Block a user