aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/auth_credentials.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-07-25 10:08:23 -0700
committerGitHub <noreply@github.com>2020-07-25 10:08:23 -0700
commit54eebf538f0e4b335bea5137dbcd0f0e20d9eb68 (patch)
treefa4018cfdaf5824aa36ab7cc1c6c9141a552df23 /weed/s3api/auth_credentials.go
parentfa0e2ff49876a199cda4c46d278ec6db750c083d (diff)
parenta09fcfcf2050af6f30b9999a767df6a732ca031c (diff)
downloadseaweedfs-54eebf538f0e4b335bea5137dbcd0f0e20d9eb68.tar.xz
seaweedfs-54eebf538f0e4b335bea5137dbcd0f0e20d9eb68.zip
Merge pull request #1402 from popstk/master
fix s3api bug
Diffstat (limited to 'weed/s3api/auth_credentials.go')
-rw-r--r--weed/s3api/auth_credentials.go2
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
}