Skip to content

Commit

Permalink
Merge pull request #654 from sharkyze/fix-introscpetion-doc
Browse files Browse the repository at this point in the history
doc: fix mistake on introspection doc page
  • Loading branch information
vektah authored Apr 1, 2019
2 parents ef2e51b + 93e72b5 commit c93d92b
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 c93d92b

Please sign in to comment.