Skip to content

Commit

Permalink
Added filter to prevent Analyses of Supressed studies from being retu…
Browse files Browse the repository at this point in the history
…rned via API
  • Loading branch information
MGS-sails committed Aug 8, 2024
1 parent b972d88 commit 2894ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emgapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1698,10 +1698,11 @@ def available(self, request=None):
- all | has access to public analyses
- authenticated | has access to public and private analyses they own
Filtered out analyses for SUPPRESSED samples
Filtered out analyses for SUPPRESSED studies
"""
query_filters = {
"all": [
Q(study__is_suppressed=False),
Q(study__is_private=False),
Q(run__is_private=False) | Q(assembly__is_private=False),
Q(is_suppressed=False),
Expand Down

0 comments on commit 2894ceb

Please sign in to comment.