mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Improved error message for user and access key conflict (#7190)
This commit is contained in:
committed by
kannappanr
parent
85e939636f
commit
8af1f0cc7b
@@ -1136,7 +1136,7 @@ func (a adminAPIHandlers) AddUser(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// Custom IAM policies not allowed for admin user.
|
||||
if accessKey == globalServerConfig.GetCredential().AccessKey {
|
||||
writeErrorResponseJSON(w, ErrInvalidRequest, r.URL)
|
||||
writeErrorResponseJSON(w, ErrAddUserInvalidArgument, r.URL)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user