Browse Source

Fix example list view

pull/2261/head
Hironsan 1 year ago
parent
commit
4d7803694a
1 changed files with 1 additions and 1 deletions
  1. 2
      backend/examples/views/example.py

2
backend/examples/views/example.py

@ -26,7 +26,7 @@ class ExampleList(generics.ListCreateAPIView):
def get_queryset(self):
member = get_object_or_404(Member, project=self.project, user=self.request.user)
if member.is_admin:
if member.is_admin():
return self.model.objects.filter(project=self.project)
return self.model.objects.filter(project=self.project, assignments__assignee=self.request.user)

Loading…
Cancel
Save