Profiling does not required object layer to be initialized (#11133)

This commit is contained in:
Anis Elleuch
2020-12-18 20:51:15 +01:00
committed by GitHub
parent 5434088c51
commit e63a10e505
5 changed files with 28 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func validateAdminUsersReq(ctx context.Context, w http.ResponseWriter, r *http.R
}
// Validate request signature.
cred, adminAPIErr = checkAdminRequestAuthType(ctx, r, action, "")
cred, adminAPIErr = checkAdminRequestAuth(ctx, r, action, "")
if adminAPIErr != ErrNone {
writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(adminAPIErr), r.URL)
return nil, cred