Skip to content

Commit 2ccd483

Browse files
authored
Update authorization.rst
1 parent 446013c commit 2ccd483

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/authorization.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@ method to your ``DjangoObjectType``.
116116
@classmethod
117117
def get_node(cls, id, info):
118118
try:
119-
post = cls._meta.model.objects.get(id=id, owner__user = info.context.user)
119+
post = cls._meta.model.objects.get(id=id)
120120
except cls._meta.model.DoesNotExist:
121121
return None
122122
123123
if post.published or info.context.user == post.owner:
124124
return post
125125
return None
126126
127+
127128
Adding Login Required
128129
---------------------
129130

0 commit comments

Comments
 (0)