1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 GraphQLView

This commit is contained in:
Arthur
2024-03-05 16:27:34 -08:00
parent 14f04453bb
commit f8748011f3
3 changed files with 30 additions and 12 deletions

View File

@ -62,7 +62,7 @@ class JournalEntriesMixin:
@strawberry_django.field
def journal_entries(self, info) -> List[Annotated["JournalEntryType", strawberry.lazy('.types')]]:
return self.journal_entries.restrict(info.context.request.user, 'view')
return self.journal_entries.all()
@strawberry.type