From 964a375127e6f7127a4bb463d71f1a57e48e860e Mon Sep 17 00:00:00 2001 From: Sandy Rogers Date: Fri, 24 Mar 2023 12:39:02 +0000 Subject: [PATCH 1/2] allows authenticated users to see public runs --- emgapi/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emgapi/models.py b/emgapi/models.py index 04e59020d..98460c1d8 100644 --- a/emgapi/models.py +++ b/emgapi/models.py @@ -226,7 +226,7 @@ def available(self, request=None): [Q(submission_account_id__iexact=_username) | Q(is_private=False)] _query_filters['RunQuerySet']['authenticated'] = \ [Q(study__submission_account_id__iexact=_username, is_private=True) | - Q(is_private=True)] + Q(is_private=False)] _query_filters['AssemblyQuerySet']['authenticated'] = \ [Q(samples__studies__submission_account_id__iexact=_username, is_private=True) | @@ -2106,4 +2106,4 @@ def __str__(self): return f"Legacy Assembly:{self.legacy_accession} - New Accession:{self.new_accession}" models.CharField.register_lookup(Search) -models.TextField.register_lookup(Search) \ No newline at end of file +models.TextField.register_lookup(Search) From 939e4f892546d607786709bc67f53bd6cb75c6d1 Mon Sep 17 00:00:00 2001 From: Sandy Rogers Date: Fri, 24 Mar 2023 12:45:18 +0000 Subject: [PATCH 2/2] v2.4.15 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 45eba7675..9aa577927 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ _requirements = os.path.join(_base, 'requirements.txt') _requirements_test = os.path.join(_base, 'requirements-test.txt') -version = "2.4.14" +version = "2.4.15" install_requirements = [] with open(_requirements) as f: