mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	fix: should return when error happend (#19342)
This commit is contained in:
		
							parent
							
								
									deeadd1a37
								
							
						
					
					
						commit
						4b9192034c
					
				| @ -193,6 +193,7 @@ func (a adminAPIHandlers) AddServiceAccountLDAP(w http.ResponseWriter, r *http.R | ||||
| 	// fail if ldap is not enabled | ||||
| 	if !globalIAMSys.LDAPConfig.Enabled() { | ||||
| 		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errors.New("LDAP not enabled")), r.URL) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	// Find the user for the request sender (as it may be sent via a service | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user