mirror of
				https://github.com/veops/cmdb.git
				synced 2025-10-31 02:56:27 +08:00 
			
		
		
		
	Merge pull request #154 from simontigers/common_setting_format
fix: init-import-user-from-acl
This commit is contained in:
		| @@ -33,7 +33,7 @@ class InitEmployee(object): | |||||||
|             block = 1 if user['block'] else 0 |             block = 1 if user['block'] else 0 | ||||||
|             acl_rid = self.get_rid_by_uid(acl_uid) |             acl_rid = self.get_rid_by_uid(acl_uid) | ||||||
|             if user['username'] in username_list: |             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: |                 if existed: | ||||||
|                     existed.update( |                     existed.update( | ||||||
|                         acl_uid=acl_uid, |                         acl_uid=acl_uid, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user