Skip to content

Commit

Permalink
fix permission on downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
atarkowska committed Apr 26, 2018
1 parent e1f9703 commit 2e72939
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 @@ -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'] = \
Expand Down

0 comments on commit 2e72939

Please sign in to comment.