fix(opa middleware): fix termination judgment condition
@@ -103,7 +103,7 @@ func (m *Middleware) GetHandler(metadata middleware.Metadata) (func(h fasthttp.R
return func(h fasthttp.RequestHandler) fasthttp.RequestHandler {
return func(ctx *fasthttp.RequestCtx) {
- if handled := m.evalRequest(ctx, meta, &query); handled {
+ if allow := m.evalRequest(ctx, meta, &query); !allow {
return
}
h(ctx)
