aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/gsearch.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index 2b8d4bc1..46500df8 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -108,8 +108,12 @@ class GSearch(object):
dataset_to_permissions[dataset_ob.id] = permissions
else:
pemissions = dataset_to_permissions[dataset_ob.id]
- if "view" not in permissions['data']:
- continue
+ if type(permissions['data']) is list:
+ if "view" not in permissions['data']:
+ continue
+ else:
+ if permissions['data'] == 'no-access':
+ continue
max_lrs_text = "N/A"
if this_trait['locus_chr'] != None and this_trait['locus_mb'] != None: