Browse Source

s3: list bucket permission change from admin to read

fix https://github.com/chrislusf/seaweedfs/issues/1430
pull/1445/head
Chris Lu 4 years ago
parent
commit
81e5124faf
  1. 2
      weed/s3api/s3api_server.go

2
weed/s3api/s3api_server.go

@ -111,7 +111,7 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {
} }
// ListBuckets // ListBuckets
apiRouter.Methods("GET").Path("/").HandlerFunc(s3a.iam.Auth(s3a.ListBucketsHandler, ACTION_ADMIN))
apiRouter.Methods("GET").Path("/").HandlerFunc(s3a.iam.Auth(s3a.ListBucketsHandler, ACTION_READ))
// NotFound // NotFound
apiRouter.NotFoundHandler = http.HandlerFunc(notFoundHandler) apiRouter.NotFoundHandler = http.HandlerFunc(notFoundHandler)

Loading…
Cancel
Save