fix: init-import-user-from-acl

This commit is contained in:
hu.sima 2023-08-15 20:45:28 +08:00
parent 17ee7622b4
commit dbcbe33ba0
1 changed files with 1 additions and 1 deletions

View File

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