diff --git a/backend/examples/views/example.py b/backend/examples/views/example.py index 38fdfa04..fa889b26 100644 --- a/backend/examples/views/example.py +++ b/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)