Skip to content

Commit

Permalink
chore(patients): enable authz for individuals API
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 1, 2024
1 parent cc1235e commit 43f0c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chord_metadata_service/patients/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from rest_framework.settings import api_settings

from chord_metadata_service.authz.middleware import authz_middleware
from chord_metadata_service.authz.permissions import BentoPhenopacketDataPermission
from chord_metadata_service.authz.types import DataTypeDiscoveryPermissions
from chord_metadata_service.chord import data_types as dts
from chord_metadata_service.discovery import responses as dres
Expand Down Expand Up @@ -77,6 +78,7 @@ class IndividualViewSet(viewsets.ModelViewSet):
IndividualCSVRenderer,
IndividualBentoSearchRenderer,
)
permission_classes = (BentoPhenopacketDataPermission,)
filter_backends = [DjangoFilterBackend, filters.OrderingFilter]
filterset_class = IndividualFilter
ordering_fields = ["id"]
Expand Down

0 comments on commit 43f0c3f

Please sign in to comment.