From 93e72b589b09e7582f072d9e911decb2d897c971 Mon Sep 17 00:00:00 2001 From: samir elsharkawy Date: Sun, 31 Mar 2019 17:49:38 +0200 Subject: [PATCH] doc: fix error on introspection doc page --- docs/content/reference/introspection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/reference/introspection.md b/docs/content/reference/introspection.md index 5eb821f6838..b2460106786 100644 --- a/docs/content/reference/introspection.md +++ b/docs/content/reference/introspection.md @@ -29,7 +29,7 @@ srv := httptest.NewServer( handler.GraphQL( NewExecutableSchema(Config{Resolvers: resolvers}), handler.RequestMiddleware(func(ctx context.Context, next func(ctx context.Context) []byte) []byte { - if userForContext(ctx).IsAdmin { + if !userForContext(ctx).IsAdmin { graphql.GetRequestContext(ctx).DisableIntrospection = true }