diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-25 09:16:35 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-25 09:16:35 -0700 |
| commit | 3d07895518b2b6e816518be0a2355c1f0a98ff15 (patch) | |
| tree | f06fda180691efb0b58c9ac0e82988e1cea31e14 /weed/s3api/s3api_acp.go | |
| parent | a6e35e4f685b7713cb863d3f28c85a4b8ae89ab8 (diff) | |
| parent | a132d445568f4de6dba617b83b42d9b9cfb1cbd2 (diff) | |
| download | seaweedfs-3d07895518b2b6e816518be0a2355c1f0a98ff15.tar.xz seaweedfs-3d07895518b2b6e816518be0a2355c1f0a98ff15.zip | |
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/s3api/s3api_acp.go')
| -rw-r--r-- | weed/s3api/s3api_acp.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/s3api/s3api_acp.go b/weed/s3api/s3api_acp.go index 7a76c2a67..0a79990f5 100644 --- a/weed/s3api/s3api_acp.go +++ b/weed/s3api/s3api_acp.go @@ -2,7 +2,6 @@ package s3api import ( "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants" - "github.com/seaweedfs/seaweedfs/weed/s3api/s3account" "github.com/seaweedfs/seaweedfs/weed/s3api/s3err" "net/http" ) @@ -10,7 +9,7 @@ import ( func getAccountId(r *http.Request) string { id := r.Header.Get(s3_constants.AmzAccountId) if len(id) == 0 { - return s3account.AccountAnonymous.Id + return AccountAnonymous.Id } else { return id } @@ -22,7 +21,7 @@ func (s3a *S3ApiServer) checkAccessByOwnership(r *http.Request, bucket string) s return errCode } accountId := getAccountId(r) - if accountId == s3account.AccountAdmin.Id || accountId == *metadata.Owner.ID { + if accountId == AccountAdmin.Id || accountId == *metadata.Owner.ID { return s3err.ErrNone } return s3err.ErrAccessDenied |
