aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-02-18 17:59:01 +0000
committerzsloan2021-02-18 17:59:01 +0000
commita1c1312037176364024a1d926e9fc76c7ee8c12f (patch)
treee51320ac0d8d737c74be0098f47c997ede1738db /wqflask
parent190c98db4d2e24e1ed404bce33d1a0b005e7f8d3 (diff)
downloadgenenetwork2-a1c1312037176364024a1d926e9fc76c7ee8c12f.tar.gz
Need to account for permissions having either a list or string until I figure out what's going on with the proxy
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 0c8335c9..2c0ba586 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -103,9 +103,12 @@ def check_access_permissions():
elif dataset.type != "Publish":
permissions = check_resource_availability(dataset)
-
- if permissions['data'] == 'no-access':
- return redirect(url_for("no_access_page"))
+ if type(permissions['data']) is list:
+ if 'view' not in permissions['data']:
+ return redirect(url_for("no_access_page"))
+ else:
+ if permissions['data'] == 'no-access':
+ return redirect(url_for("no_access_page"))
@app.teardown_appcontext
def shutdown_session(exception=None):