diff --git a/docs/authorization.rst b/docs/authorization.rst index 2c38fa4..5199081 100644 --- a/docs/authorization.rst +++ b/docs/authorization.rst @@ -84,7 +84,7 @@ with the context argument. def resolve_my_posts(self, info): # context will reference to the Django request - if not info.context.user.is_authenticated(): + if not info.context.user.is_authenticated: return Post.objects.none() else: return Post.objects.filter(owner=info.context.user)