old_contents: from rest_framework import viewsets
  
  from frigg.builds.filters import BuildPermissionFilter, ProjectPermissionFilter
  from frigg.builds.models import Build, Project
  from frigg.builds.serializers import BuildSerializer, PaginatedBuildSerializer, ProjectSerializer
  
  
  class ProjectViewSet(viewsets.ModelViewSet):
      queryset = Project.objects.all()
      serializer_class = ProjectSerializer
      filter_backends = [ProjectPermissionFilter]
  
  
  class BuildViewSet(viewsets.ModelViewSet):
      queryset = Build.objects.all()
      serializer_class = BuildSerializer
      pagination_serializer_class = PaginatedBuildSerializer
      paginate_by = 50
      filter_backends = [BuildPermissionFilter]
  
new_contents: from rest_framework import permissions, viewsets
  
  from frigg.builds.filters import BuildPermissionFilter, ProjectPermissionFilter
  from frigg.builds.models import Build, Project
  from frigg.builds.serializers import BuildSerializer, PaginatedBuildSerializer, ProjectSerializer
  
  
  class ProjectViewSet(viewsets.ModelViewSet):
      queryset = Project.objects.all()
      serializer_class = ProjectSerializer
      filter_backends = [ProjectPermissionFilter]
      permission_classes = permissions.DjangoModelPermissionsOrAnonReadOnly,
  
  
  class BuildViewSet(viewsets.ModelViewSet):
      queryset = Build.objects.all()
      serializer_class = BuildSerializer
      pagination_serializer_class = PaginatedBuildSerializer
      paginate_by = 50
      filter_backends = [BuildPermissionFilter]
      permission_classes = permissions.DjangoModelPermissionsOrAnonReadOnly,
  
subject: Fix permissions in api