fix: filter list buckets operation with ListObjects perm (#9907)

fix regression introduced in #9305
This commit is contained in:
Harshavardhana 2020-06-23 23:21:11 -07:00 committed by GitHub
parent dee3cf2d7f
commit f4b2ed2a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,7 @@ func (web *webAPIHandlers) ListBuckets(r *http.Request, args *WebGenericArgs, re
for _, bucket := range buckets {
if globalIAMSys.IsAllowed(iampolicy.Args{
AccountName: claims.AccessKey,
Action: iampolicy.ListAllMyBucketsAction,
Action: iampolicy.ListBucketAction,
BucketName: bucket.Name,
ConditionValues: getConditionValues(r, "", claims.AccessKey, claims.Map()),
IsOwner: owner,