-
-
Save hoorayimhelping/c138a0f393b3face916637b3db29ffe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/http/authentication_middleware.go b/http/authentication_middleware.go | |
index 91b64438e..3ffaa43a8 100644 | |
--- a/http/authentication_middleware.go | |
+++ b/http/authentication_middleware.go | |
@@ -4,6 +4,7 @@ import ( | |
"context" | |
"fmt" | |
"net/http" | |
+ "strings" | |
"time" | |
platform "github.com/influxdata/influxdb" | |
@@ -107,7 +108,8 @@ func (h *AuthenticationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request | |
// and therefor has no associated user. if the user ID is invalid | |
// disregard the user active check | |
if auth.GetUserID().Valid() { | |
- if err = h.isUserActive(ctx, auth); err != nil { | |
+ // if err = h.isUserActive(ctx, auth); err != nil { | |
+ if strings.Contains(r.URL.Path, "/orgs/2e9f65b990c28374/") { | |
InactiveUserError(ctx, h, w) | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment