Skip to content

Commit 9d24528

Browse files
a-c-sreedhar-reddyjkimbo
authored andcommitted
is_authenticated is bool not callable. (#749)
1 parent d5e71bc commit 9d24528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ with the context argument.
8484
8585
def resolve_my_posts(self, info):
8686
# context will reference to the Django request
87-
if not info.context.user.is_authenticated():
87+
if not info.context.user.is_authenticated:
8888
return Post.objects.none()
8989
else:
9090
return Post.objects.filter(owner=info.context.user)

0 commit comments

Comments
 (0)