mirror of
https://github.com/minio/minio.git
synced 2025-02-03 18:06:00 -05: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
|
// fail if ldap is not enabled
|
||||||
if !globalIAMSys.LDAPConfig.Enabled() {
|
if !globalIAMSys.LDAPConfig.Enabled() {
|
||||||
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errors.New("LDAP not enabled")), r.URL)
|
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
|
// Find the user for the request sender (as it may be sent via a service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user