aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/oauth2/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/oauth2/ui.py')
-rw-r--r--wqflask/wqflask/oauth2/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/oauth2/ui.py b/wqflask/wqflask/oauth2/ui.py
index 39b735fb..b706cdd9 100644
--- a/wqflask/wqflask/oauth2/ui.py
+++ b/wqflask/wqflask/oauth2/ui.py
@@ -9,7 +9,7 @@ def render_ui(templatepath: str, **kwargs):
"""Handle repetitive UI rendering stuff."""
roles = kwargs.get("roles", tuple()) # Get roles if already provided
if user_logged_in() and not bool(roles): # If not, try fetching them
- roles_results = oauth2_get("auth/user/roles").either(
+ roles_results = oauth2_get("auth/system/roles").either(
lambda err: {"roles_error": process_error(err)},
lambda roles: {"roles": roles})
kwargs = {**kwargs, **roles_results}