diff options
author | Frederick Muriuki Muriithi | 2025-07-31 16:18:41 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-31 16:18:41 -0500 |
commit | 742f50cb5a6ee6e5c089c616d2c4b65f4a5ecb9b (patch) | |
tree | 58ca74c27ced514b73d71e7a9385231b3a2f4bdf | |
parent | a5d512f2e42352e5eb3298d1fa44d59ea25262f7 (diff) | |
download | gn-auth-742f50cb5a6ee6e5c089c616d2c4b65f4a5ecb9b.tar.gz |
Re-grant access to sysadmin, in case they're removed as group member
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/models.py b/gn_auth/auth/authorisation/resources/groups/models.py index e027b2c..597ac37 100644 --- a/gn_auth/auth/authorisation/resources/groups/models.py +++ b/gn_auth/auth/authorisation/resources/groups/models.py @@ -366,6 +366,9 @@ def remove_user_from_group( user, grp_resource.resource_id, "group-creator") + grant_access_to_sysadmins(cursor, + grp_resource.resource_id, + system_resource(conn).resource_id) @authorised_p( |