diff options
author | Frederick Muriuki Muriithi | 2024-06-17 13:58:13 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-17 13:58:13 -0500 |
commit | cb8154f79a755e2d6f38de969acc10e5240ca888 (patch) | |
tree | 3d98ae46682c4e43a4616201834f4810fd1abe85 /gn2/wqflask | |
parent | ea4696e1c476a0d706d6b31372281feedd9bc376 (diff) | |
download | genenetwork2-cb8154f79a755e2d6f38de969acc10e5240ca888.tar.gz |
Use privilege objects rather than IDS.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/oauth2/ui.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn2/wqflask/oauth2/ui.py b/gn2/wqflask/oauth2/ui.py index e31d87d9..90d65e0b 100644 --- a/gn2/wqflask/oauth2/ui.py +++ b/gn2/wqflask/oauth2/ui.py @@ -9,8 +9,7 @@ def render_ui(templatepath: str, **kwargs): """Handle repetitive UI rendering stuff.""" roles = kwargs.get("roles", tuple()) # Get roles user_privileges = tuple( - privilege["privilege_id"] for role in roles - for privilege in role["privileges"]) + privilege for role in roles for privilege in role["privileges"]) kwargs = { **kwargs, "roles": roles, "user_privileges": user_privileges } |