diff options
author | Frederick Muriuki Muriithi | 2023-09-27 10:09:53 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-09-27 10:37:07 +0300 |
commit | a8ebba8266618ec53fe485ee84d09d0cdff898a1 (patch) | |
tree | fd019b3672e62573813123c43e9fa9843153bb10 /gn_auth/auth/authorisation/resources/groups | |
parent | 938efc6d8d2713d5f8dd399e9c878b95832ac882 (diff) | |
download | gn-auth-a8ebba8266618ec53fe485ee84d09d0cdff898a1.tar.gz |
typing: fix and ignore typing issues.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/groups')
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/views.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py index ba34040..96cfb67 100644 --- a/gn_auth/auth/authorisation/resources/groups/views.py +++ b/gn_auth/auth/authorisation/resources/groups/views.py @@ -324,8 +324,12 @@ def group_privileges(): group_level_roles = tuple( Privilege(row["privilege_id"], row["privilege_description"]) for row in cursor.fetchall()) - return tuple(privilege for arole in this_user_roles - for privilege in arole.privileges) + group_level_roles + + ## 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 + for privilege in arole.privileges) + group_level_roles #type: ignore[attr-defined] return jsonify(tuple( dictify(priv) for priv in with_db_connection(__list_privileges__))) |