diff options
| author | 7y-9 <121850020+7y-9@users.noreply.github.com> | 2024-02-19 19:07:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-19 03:07:48 -0800 |
| commit | 41ec9d77596505dae3f0de0662db061fbaf168fc (patch) | |
| tree | 9e748510a447e9bf95aff229efd404bbb63e2e75 /weed/s3api/s3api_bucket_handlers.go | |
| parent | f037c09c11621660ea428f42abe2f18c10c8ec48 (diff) | |
| download | seaweedfs-41ec9d77596505dae3f0de0662db061fbaf168fc.tar.xz seaweedfs-41ec9d77596505dae3f0de0662db061fbaf168fc.zip | |
refactor: put the auth outside (#5313)
Diffstat (limited to 'weed/s3api/s3api_bucket_handlers.go')
| -rw-r--r-- | weed/s3api/s3api_bucket_handlers.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go index 6ae6011f2..bb3939571 100644 --- a/weed/s3api/s3api_bucket_handlers.go +++ b/weed/s3api/s3api_bucket_handlers.go @@ -123,13 +123,6 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request) return } - if s3a.iam.isEnabled() { - if _, errCode = s3a.iam.authRequest(r, s3_constants.ACTION_ADMIN); errCode != s3err.ErrNone { - s3err.WriteErrorResponse(w, r, errCode) - return - } - } - fn := func(entry *filer_pb.Entry) { if identityId := r.Header.Get(s3_constants.AmzIdentityId); identityId != "" { if entry.Extended == nil { |
