diff options
author | Munyoki Kilyungi | 2024-03-22 18:45:46 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | 9033290cb5867bbc186a8a2682f85b1e89773496 (patch) | |
tree | 6b3f2c4f1bcc463ea7f02cf848a1fb6fa629445c /gn2/wqflask/oauth2 | |
parent | 7c77ff91f6530aca0865bd13025811f2f93e3541 (diff) | |
download | genenetwork2-9033290cb5867bbc186a8a2682f85b1e89773496.tar.gz |
Delete repetitive statement in "render_ui".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r-- | gn2/wqflask/oauth2/ui.py | 1 |
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"]) |