Commit graph

4 commits

Author SHA1 Message Date
Peter Goodhall
6e43503116 Enforce unique callsigns and protect last admin
Add callsign uniqueness checks and prevent demotion of the last admin. Introduces ECALLSIGNEXISTS and ELASTADMIN constants, new model methods (exists_by_callsign, count_admin_users, would_remove_last_admin) and integrates checks into add/update flows to return appropriate error codes. Update User controller to add validation callbacks (check_unique_callsign, check_last_admin_role) and wire errors into multiple user actions. Update signup/edit views to display callsign and usertype validation feedback using Bootstrap invalid-feedback and improve alert layout.
2026-03-26 14:22:02 +00:00
Andy Smith
74116240dd More user changes, including profile page 2011-08-19 20:33:37 +01:00
Andy Smith
28ee178dd1 Added error code constants 2011-08-19 17:11:29 +01:00
Peter Goodhall
f2b50c4573 Added Basic Files 2011-04-25 16:24:01 +01:00