Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created October 15, 2019 21:16
Show Gist options
  • Save hoorayimhelping/c138a0f393b3face916637b3db29ffe2 to your computer and use it in GitHub Desktop.
Save hoorayimhelping/c138a0f393b3face916637b3db29ffe2 to your computer and use it in GitHub Desktop.
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