mirror of
https://github.com/veops/cmdb.git
synced 2025-09-10 13:26:53 +08:00
fix(api): add add_from arg in create employee
This commit is contained in:
@@ -726,6 +726,7 @@ class CreateEmployee(object):
|
|||||||
try:
|
try:
|
||||||
existed = self.check_acl_user(user_data)
|
existed = self.check_acl_user(user_data)
|
||||||
if not existed:
|
if not existed:
|
||||||
|
user_data['add_from'] = 'common'
|
||||||
return self.acl.create_user(user_data)
|
return self.acl.create_user(user_data)
|
||||||
return existed
|
return existed
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Reference in New Issue
Block a user