Skip to content

Commit

Permalink
glamr/views: don't show private samples on map
Browse files Browse the repository at this point in the history
A fix for #59.
  • Loading branch information
robert102 committed Dec 11, 2024
1 parent 2700299 commit 6c73624
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mibios/glamr/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ def get_map_points(self):
'collection_timestamp', 'sample_id', 'biosample',
]
qs = self.get_sample_queryset()
qs = exclude_private_data(qs)
qs = qs.exclude(longitude=None)
qs = qs.exclude(latitude=None)
qs = qs.prefetch_related('dataset', 'dataset__primary_ref')
Expand Down

0 comments on commit 6c73624

Please sign in to comment.