aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth')
-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__)))