mirror of https://github.com/veops/cmdb.git
fix(api): add add_from arg in create employee
This commit is contained in:
parent
10527bf9b8
commit
328c3617d5
|
@ -726,6 +726,7 @@ class CreateEmployee(object):
|
|||
try:
|
||||
existed = self.check_acl_user(user_data)
|
||||
if not existed:
|
||||
user_data['add_from'] = 'common'
|
||||
return self.acl.create_user(user_data)
|
||||
return existed
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue