aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
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):