fix(api): add add_from arg in create employee

This commit is contained in:
simontigers 2023-12-06 17:06:18 +08:00 committed by GitHub
parent 10527bf9b8
commit 328c3617d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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: