diff --git a/emgapi/models.py b/emgapi/models.py index 4f37fe851..46713df88 100644 --- a/emgapi/models.py +++ b/emgapi/models.py @@ -87,7 +87,8 @@ def available(self, request=None): _query_filters['StudyQuerySet']['authenticated'] = \ [Q(submission_account_id=_username) | Q(is_public=1)] _query_filters['StudyDownloadQuerySet']['authenticated'] = \ - [Q(submission_account_id=_username) | Q(study__is_public=1)] + [Q(study__submission_account_id=_username) | + Q(study__is_public=1)] _query_filters['SampleQuerySet']['authenticated'] = \ [Q(submission_account_id=_username) | Q(is_public=1)] _query_filters['RunQuerySet']['authenticated'] = \