about summary refs log tree commit diff
path: root/gn_auth/errors/authlib.py
diff options
context:
space:
mode:
authorClaude2026-08-31 00:00:00 +0000
committerFrederick Muriuki Muriithi2026-08-31 14:18:30 -0500
commitcbc0228aef7ca7f39d6649171a523474869a57c7 (patch)
tree6e8c30529bb3fdf97d18e281e047f1dc935d8b97 /gn_auth/errors/authlib.py
parentd97983c142d132ee70acd6bfc6b7593ba977652d (diff)
downloadgn-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/errors/authlib.py')
0 files changed, 0 insertions, 0 deletions