Backend: DELETE /users/:id (admin only, not self, blocked if last admin). Briefs are preserved (ON DELETE SET NULL on created_by). Frontend: useDeleteUser hook + Actions column in UsersAdminPage with trash button. Own-account row shows '(you)' and the delete is disabled with a tooltip. Error detail surfaces in the toast on 400s (eg. 'Cannot delete the only remaining admin'). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| briefs.py | ||
| deliverable_types.py | ||
| documents.py | ||
| exports.py | ||
| generations.py | ||
| users.py | ||