Skip to content

Commit

Permalink
Merge branch 'master' of github.com:veops/cmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook committed Aug 16, 2023
2 parents b33ae16 + 3a03695 commit 6dc12bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdb-api/api/commands/init_common_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def import_user_from_acl(self):
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,
Expand Down

0 comments on commit 6dc12bb

Please sign in to comment.