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

fix regression introduced in #9305
master
Harshavardhana 4 years ago committed by GitHub
parent dee3cf2d7f
commit f4b2ed2a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/web-handlers.go

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

Loading…
Cancel
Save