Skip to content

Commit

Permalink
self.status == 'public'
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Jan 26, 2024
1 parent d06bf76 commit 9e57e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiita_db/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e57e9b

Please sign in to comment.