s3: support config action Admin:bucket

This commit is contained in:
Chris Lu committed 2020-12-25 00:38:56 -08:00
1 parent 75613b2cc7
commit 090f85be4b
3 files changed
+36 -12

No files matched your search

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