From f4b2ed2a92a897f2fc2868a84c14b72d07c56fd1 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 23 Jun 2020 23:21:11 -0700 Subject: [PATCH] fix: filter list buckets operation with ListObjects perm (#9907) fix regression introduced in #9305 --- cmd/web-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index 95528a0fa..a467ebaed 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -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,