fix: allow accountInfo with creds with parentUsers (#11568)

This commit is contained in:
Harshavardhana
2021-02-17 20:57:17 -08:00
committed by GitHub
parent 55037e6e54
commit 95e0acbb26
2 changed files with 20 additions and 10 deletions
-4
View File
@@ -725,10 +725,6 @@ func (a adminAPIHandlers) AccountInfoHandler(w http.ResponseWriter, r *http.Requ
}
accountName := cred.AccessKey
if cred.ParentUser != "" {
accountName = cred.ParentUser
}
policies, err := globalIAMSys.PolicyDBGet(accountName, false)
if err != nil {
logger.LogIf(ctx, err)