Skip to content

Commit

Permalink
public discovery authz todo
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Jul 16, 2024
1 parent fd96250 commit 7ea3925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chord_metadata_service/patients/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ async def public_discovery_filter_queryset(request: DrfRequest, queryset: QueryS
# Check query parameters validity
qp = request.query_params
discovery = await get_request_discovery(request)
# TODO: allow exceeding max query parameters for authorized requests
if len(qp) > get_max_query_parameters(discovery, low_counts_censored):
raise ValidationError(f"Wrong number of fields: {len(qp)}")

Expand Down

0 comments on commit 7ea3925

Please sign in to comment.