mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: filter list buckets operation with ListObjects perm (#9907)
fix regression introduced in #9305
This commit is contained in:
parent
dee3cf2d7f
commit
f4b2ed2a92
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user