aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/resources/groups
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-05 12:42:26 -0500
committerFrederick Muriuki Muriithi2024-06-05 12:42:26 -0500
commitf84168a6da47e97968160a778d614137e7a126a7 (patch)
tree9fb85778036d4d79aca2455082801ab48d712add /gn_auth/auth/authorisation/resources/groups
parentadb774476734b8a6e21a4da6b1d2e0ec855c65d7 (diff)
downloadgn-auth-f84168a6da47e97968160a778d614137e7a126a7.tar.gz
Bug: Point to correct key to avoid errors
Diffstat (limited to 'gn_auth/auth/authorisation/resources/groups')
-rw-r--r--gn_auth/auth/authorisation/resources/groups/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py
index fe7a3de..f85809c 100644
--- a/gn_auth/auth/authorisation/resources/groups/views.py
+++ b/gn_auth/auth/authorisation/resources/groups/views.py
@@ -328,7 +328,7 @@ def group_privileges():
## the `user_roles(...)` function changed thus this entire function
## needs to change or be obsoleted -- also remove the ignore below
return tuple(
- privilege for arole in this_user_roles
+ privilege for arole in this_user_roles["roles"]
for privilege in arole.privileges) + group_level_roles #type: ignore[attr-defined]
return jsonify(tuple(
asdict(priv) for priv in with_db_connection(__list_privileges__)))