Logout session if user deleted

This commit is contained in:
Nabin Hait 2012-02-13 12:43:38 +05:30
parent 043b0f26bd
commit 7949b33b70

View File

@ -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