From 12d7e7c50f0dbd56e102790d9b412efb6e013edb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 30 Jul 2025 10:04:10 -0500 Subject: 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. --- gn_auth/auth/authorisation/resources/views.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'gn_auth/auth/authorisation/resources/views.py') 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, -- cgit 1.4.1