diff options
| author | Claude | 2026-08-31 00:00:00 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-08-31 14:18:30 -0500 |
| commit | cbc0228aef7ca7f39d6649171a523474869a57c7 (patch) | |
| tree | 6e8c30529bb3fdf97d18e281e047f1dc935d8b97 /gn_auth/scripts/register_sys_admin.py | |
| parent | d97983c142d132ee70acd6bfc6b7593ba977652d (diff) | |
| download | gn-auth-cbc0228aef7ca7f39d6649171a523474869a57c7.tar.gz | |
refactor(users): move delete_users to admin users blueprint
Move POST /auth/user/delete to POST /auth/system/administration/users/delete, consistent with the create endpoint already living there. gn_auth/auth/system/admin/users.py: - Add imports for sqlite3, reduce, Sequence, AuthorisationError, authorised_for2, and system_resource. - Move __delete_users_individually__, __fetch_non_deletable_users__, __non_deletable_with_reason__, and delete_users() from users/views.py. gn_auth/auth/authorisation/users/views.py: - Remove the four functions moved to admin/users.py. The sole known caller (GN2 wqflask/oauth2/users.py) is updated in the accompanying genenetwork2 patch. Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'gn_auth/scripts/register_sys_admin.py')
0 files changed, 0 insertions, 0 deletions
