From 3f49586c9f36b63d77c41120942ceddc11215ea9 Mon Sep 17 00:00:00 2001 From: "hu.sima" Date: Tue, 15 Aug 2023 20:45:28 +0800 Subject: [PATCH] fix: init-import-user-from-acl --- cmdb-api/api/commands/init_common_setting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdb-api/api/commands/init_common_setting.py b/cmdb-api/api/commands/init_common_setting.py index a26db5a..ea5afc9 100644 --- a/cmdb-api/api/commands/init_common_setting.py +++ b/cmdb-api/api/commands/init_common_setting.py @@ -33,7 +33,7 @@ class InitEmployee(object): block = 1 if user['block'] else 0 acl_rid = self.get_rid_by_uid(acl_uid) if user['username'] in username_list: - existed = Employee.get_by(first=True, username=user['username']) + existed = Employee.get_by(first=True, username=user['username'], to_dict=False) if existed: existed.update( acl_uid=acl_uid,