Skip to content

Commit

Permalink
doc: fix error on introspection doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
xsaamiir committed Apr 1, 2019
1 parent 7b533df commit 93e72b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/reference/introspection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 93e72b5

Please sign in to comment.