diff options
author | Frederick Muriuki Muriithi | 2025-07-30 10:04:10 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-30 10:04:10 -0500 |
commit | 12d7e7c50f0dbd56e102790d9b412efb6e013edb (patch) | |
tree | 0da36b09f55800fa73b6ad44901dca0d4b09d33d /gn_auth/auth/authorisation/resources/views.py | |
parent | 7382e55abd2b55df53cfd47ac2efe4d7a43b1275 (diff) | |
download | gn-auth-12d7e7c50f0dbd56e102790d9b412efb6e013edb.tar.gz |
Grant user `system-administrator` role on all resources
During promotion of a user to system admin, grant the user `system-administrator` role on all resources in the system.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index f39cc59..a960ca3 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -685,8 +685,6 @@ def delete_resource(): form = request_json() try: resource_id = UUID(form.get("resource_id")) - # TODO Update user-levels promotion/demotion to grant/revoke - # (system:resource:*) to/from admin users if not authorised_for_spec( conn, the_token.user.user_id, |