diff options
| author | popstk <ther@live.cn> | 2020-07-25 17:14:49 +0800 |
|---|---|---|
| committer | popstk <ther@live.cn> | 2020-07-25 17:14:49 +0800 |
| commit | a09fcfcf2050af6f30b9999a767df6a732ca031c (patch) | |
| tree | fa4018cfdaf5824aa36ab7cc1c6c9141a552df23 | |
| parent | feb52400beef568192e2400c5cbaf4e241dd1e16 (diff) | |
| download | seaweedfs-a09fcfcf2050af6f30b9999a767df6a732ca031c.tar.xz seaweedfs-a09fcfcf2050af6f30b9999a767df6a732ca031c.zip | |
fix s3api auth bug
| -rw-r--r-- | weed/s3api/auth_credentials.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index 30052878b..de40897ea 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -110,7 +110,7 @@ func (iam *IdentityAccessManagement) lookupByAccessKey(accessKey string) (identi func (iam *IdentityAccessManagement) Auth(f http.HandlerFunc, action Action) http.HandlerFunc { - if iam.isEnabled() { + if !iam.isEnabled() { return f } |
