Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: request path in JWT middleware (#3467)

boojack35347ccbe750
diff --git a/server/jwt.go b/server/jwt.go
index 8fbfd80c60..d2a6e501d2 100644
--- a/server/jwt.go
+++ b/server/jwt.go
@@ -200,7 +200,7 @@ func JWTMiddleware(pathPrefix string, principalStore *store.Store, next echo.Han
method := c.Request().Method
// Skip GET /subscription request
- if common.HasPrefixes(c.Path(), "/subscription") && method == "GET" {
+ if common.HasPrefixes(path, "/subscription") && method == "GET" {
return next(c)
}