aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_bucket_handlers.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-01-03 15:39:36 -0800
committerchrislu <chris.lu@gmail.com>2022-01-03 15:39:36 -0800
commita7887166cfad779b693731dbf4fc1d678a2c81d0 (patch)
tree2fdee8c395e55e3ec3df7bf5727f5a00664e2dc9 /weed/s3api/s3api_bucket_handlers.go
parent5799a20f7149e8fe8e74ce0a03f138df297e0b9c (diff)
downloadseaweedfs-a7887166cfad779b693731dbf4fc1d678a2c81d0.tar.xz
seaweedfs-a7887166cfad779b693731dbf4fc1d678a2c81d0.zip
wildcard prefix to restrict access to directories in s3 bucket
https://github.com/chrislusf/seaweedfs/discussions/2551
Diffstat (limited to 'weed/s3api/s3api_bucket_handlers.go')
-rw-r--r--weed/s3api/s3api_bucket_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go
index c3e50ec44..3233f4006 100644
--- a/weed/s3api/s3api_bucket_handlers.go
+++ b/weed/s3api/s3api_bucket_handlers.go
@@ -55,7 +55,7 @@ func (s3a *S3ApiServer) ListBucketsHandler(w http.ResponseWriter, r *http.Reques
var buckets []*s3.Bucket
for _, entry := range entries {
if entry.IsDirectory {
- if identity != nil && !identity.canDo(s3_constants.ACTION_LIST, entry.Name) {
+ if identity != nil && !identity.canDo(s3_constants.ACTION_LIST, entry.Name, "") {
continue
}
buckets = append(buckets, &s3.Bucket{