aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index c126524b..eb741701 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -1223,9 +1223,8 @@ def get_dataset(name):
GN3_LOCAL_URL,
f"/api/metadata/datasets/{name}")
).json()
- id_ = metadata.get("id", "").split("/")[-1]
result = oauth2_get(
- f"auth/resource/authorisation/{id_}"
+ f"auth/resource/authorisation/{metadata.get('label')}"
).either(
lambda err: {"roles": []},
lambda val: val