From 9e57e9bece4020dd33c5ec91908ed646e35c4a36 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Fri, 26 Jan 2024 15:30:33 -0700 Subject: [PATCH] self.status == 'public' --- qiita_db/study.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiita_db/study.py b/qiita_db/study.py index 8dd9aa989..f1663b82e 100644 --- a/qiita_db/study.py +++ b/qiita_db/study.py @@ -1177,7 +1177,7 @@ def has_access(self, user, no_public=False): with qdb.sql_connection.TRN: # return true if the user is one of the admins or if the study is # public - if user.level in {'superuser', 'admin'} or self.public: + if user.level in {'superuser', 'admin'} or self.status == 'public': return True # let's check if the study belongs to this user or has been