mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-23 10:32:04 +03:00
is_authenticated is bool not callable.
This commit is contained in:
parent
d5e71bc9be
commit
69f2307d3b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user