Files
fixin.me/config
barbie-bot 0daf413b47 Prevent sole admin from deleting their account
Without this guard, the last admin in the system could delete their own
account, making the application unmanageable. This adds a model method
`User#sole_admin?`, a controller guard in `RegistrationsController#destroy`,
and disables the delete button in the profile edit view when the current
user is the only remaining admin.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 06:52:14 +00:00
..
2023-03-05 19:23:29 +01:00
2024-01-14 03:27:22 +01:00
2025-07-23 23:42:41 +02:00
2023-12-03 23:27:10 +01:00
2026-02-28 17:19:24 +00:00