mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
commit
efc8fd6633
|
@ -106,5 +106,5 @@ method to your ``DjangoObjectType``.
|
|||
return None
|
||||
|
||||
if post.published or context.user == post.owner:
|
||||
return instance
|
||||
return post
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user