aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-02-18 17:31:16 +0000
committerzsloan2021-02-18 17:31:16 +0000
commit647c927b3417e378f1dc45b572c0311bbc5c74fa (patch)
treea67abb1f3a26e880beedef46841b435d68006b5c /wqflask
parentdc48b708fae915aa8484810f7814d0b66e6a87e1 (diff)
downloadgenenetwork2-647c927b3417e378f1dc45b572c0311bbc5c74fa.tar.gz
Fixed checking permissions in trait.py
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 9b96da85..9e85981f 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -39,7 +39,7 @@ def create_trait(**kw):
else:
permissions = check_resource_availability(dataset)
- if "view" in permissions['data']:
+ if permissions['data'] != "no-access"
the_trait = GeneralTrait(**kw)
if the_trait.dataset.type != "Temp":
the_trait = retrieve_trait_info(