about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gn2/wqflask/oauth2/ui.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/ui.py b/gn2/wqflask/oauth2/ui.py
index b706cdd9..04ec3292 100644
--- a/gn2/wqflask/oauth2/ui.py
+++ b/gn2/wqflask/oauth2/ui.py
@@ -13,7 +13,6 @@ def render_ui(templatepath: str, **kwargs):
             lambda err: {"roles_error": process_error(err)},
             lambda roles: {"roles": roles})
         kwargs = {**kwargs, **roles_results}
-        roles = kwargs.get("roles", tuple())
     user_privileges = tuple(
         privilege["privilege_id"] for role in roles
         for privilege in role["privileges"])