mirror of
https://github.com/veops/cmdb.git
synced 2025-09-10 10:58:18 +08:00
fix(api): add add_from arg in create employee
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user