Skip to content

Commit fcd249b

Browse files
committed
addressing @josenavas comments
1 parent 661342f commit fcd249b

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

qiita_db/meta_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def validate_filepath_access_by_user(user, filepath_id):
128128
if (a.visibility == 'public' or a.study.has_access(user)):
129129
return True
130130
else:
131-
for c in a.children:
131+
for c in a.descendants.nodes():
132132
if (c.visibility == 'public' or c.study.has_access(user)):
133133
return True
134134
return False

qiita_db/support_files/patches/50.sql

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)