mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 18:33:46 +08:00
fix(api): Common create employee (#287)
* fix(api): add add_from arg in create employee * fix(api): add check in acl call common after add user
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