Browse Source

replace Auth(..,true) with AuthWithAcl

pull/5936/head
LHHDZ 5 months ago
parent
commit
575fe65712
  1. 6
      weed/s3api/s3api_server.go

6
weed/s3api/s3api_server.go

@ -261,13 +261,13 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {
// buckets with query // buckets with query
// PutBucketOwnershipControls // PutBucketOwnershipControls
bucket.Methods(http.MethodPut).HandlerFunc(track(s3a.Auth(s3a.PutBucketOwnershipControls, ACTION_ADMIN, true), http.MethodPut)).Queries("ownershipControls", "")
bucket.Methods(http.MethodPut).HandlerFunc(track(s3a.AuthWithAcl(s3a.PutBucketOwnershipControls, ACTION_ADMIN), http.MethodPut)).Queries("ownershipControls", "")
//GetBucketOwnershipControls //GetBucketOwnershipControls
bucket.Methods(http.MethodGet).HandlerFunc(track(s3a.Auth(s3a.GetBucketOwnershipControls, ACTION_READ, true), http.MethodGet)).Queries("ownershipControls", "")
bucket.Methods(http.MethodGet).HandlerFunc(track(s3a.AuthWithAcl(s3a.GetBucketOwnershipControls, ACTION_READ), http.MethodGet)).Queries("ownershipControls", "")
//DeleteBucketOwnershipControls //DeleteBucketOwnershipControls
bucket.Methods(http.MethodDelete).HandlerFunc(track(s3a.Auth(s3a.DeleteBucketOwnershipControls, ACTION_ADMIN, true), http.MethodDelete)).Queries("ownershipControls", "")
bucket.Methods(http.MethodDelete).HandlerFunc(track(s3a.AuthWithAcl(s3a.DeleteBucketOwnershipControls, ACTION_ADMIN), http.MethodDelete)).Queries("ownershipControls", "")
// raw buckets // raw buckets

Loading…
Cancel
Save