aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-22 18:45:46 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit9033290cb5867bbc186a8a2682f85b1e89773496 (patch)
tree6b3f2c4f1bcc463ea7f02cf848a1fb6fa629445c
parent7c77ff91f6530aca0865bd13025811f2f93e3541 (diff)
downloadgenenetwork2-9033290cb5867bbc186a8a2682f85b1e89773496.tar.gz
Delete repetitive statement in "render_ui".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-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"])