mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
add thread context in surrounding function into IAM functions (#13658)
This commit is contained in:
committed by
GitHub
parent
7752cdbfaf
commit
07c5e72cdb
@@ -152,7 +152,7 @@ func checkKeyValid(r *http.Request, accessKey string) (auth.Credentials, bool, A
|
||||
cred := globalActiveCred
|
||||
if cred.AccessKey != accessKey {
|
||||
// Check if the access key is part of users credentials.
|
||||
ucred, ok := globalIAMSys.GetUser(accessKey)
|
||||
ucred, ok := globalIAMSys.GetUser(r.Context(), accessKey)
|
||||
if !ok {
|
||||
return cred, false, ErrInvalidAccessKeyID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user