aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-05-19 10:49:36 +0300
committerFrederick Muriuki Muriithi2023-05-19 10:49:36 +0300
commite7f884ab69919818948a7d6ef2b6882eba8d815b (patch)
tree1b4ebb6fefd8512e1c53362b6437de84767f3d32 /wqflask/base
parent1ec8d9e6c1625b398bbcd806180000595214cf43 (diff)
downloadgenenetwork2-e7f884ab69919818948a7d6ef2b6882eba8d815b.tar.gz
auth: Use auth privileges to control UI display
Use the privileges from the authorisation endpoint to control which elements of the UI are displayed to the user. * wqflask/base/trait.py: Remove unused import * wqflask/wqflask/show_trait/show_trait.py: Unhook from GN-PROXY * wqflask/wqflask/templates/show_trait.html: Display or hide UI elements depending on the privileges the user has. * wqflask/wqflask/templates/show_trait_details.html: Display or hide UI elements depending on the privileges the user has. * wqflask/wqflask/views.py: Pass privileges, user, and resource details on to the UI template to be used for controlling UI element display.
Diffstat (limited to 'wqflask/base')
-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 e6e1c6b3..37085448 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -7,7 +7,7 @@ from base import webqtlConfig
from base.webqtlCaseData import webqtlCaseData
from base.data_set import create_dataset
from utility.authentication_tools import check_resource_availability
-from utility.tools import GN2_BASE_URL, GN_PROXY_URL
+from utility.tools import GN2_BASE_URL
from utility.redis_tools import get_redis_conn, get_resource_id
from flask import g, request, url_for