From f84168a6da47e97968160a778d614137e7a126a7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 5 Jun 2024 12:42:26 -0500 Subject: Bug: Point to correct key to avoid errors --- gn_auth/auth/authorisation/resources/groups/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/resources/groups') 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__))) -- cgit v1.2.3