mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
my_company.py: check validation before adding user
This commit is contained in:
@@ -52,12 +52,13 @@ def delete_user(args):
|
|||||||
#
|
#
|
||||||
def add_user(args):
|
def add_user(args):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
add_profile(args['user'])
|
|
||||||
# erpnext-saas
|
# erpnext-saas
|
||||||
if cint(webnotes.conn.get_value('Control Panel', None, 'sync_with_gateway')):
|
if cint(webnotes.conn.get_value('Control Panel', None, 'sync_with_gateway')):
|
||||||
from server_tools.gateway_utils import add_user_gateway
|
from server_tools.gateway_utils import add_user_gateway
|
||||||
add_user_gateway(args['user'])
|
add_user_gateway(args['user'])
|
||||||
|
|
||||||
|
add_profile(args['user'])
|
||||||
|
|
||||||
#
|
#
|
||||||
# add profile record
|
# add profile record
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user