Files
CatoandClaude d388a61030 Back-office access rules come from @bitbaum/accountkit (#411)
Heidi's own copy of the rules (lib/domain/admin/people.ts, access.ts) is
replaced by the package (accountkit 0.34.0). people.ts builds
createManagers once on the app's database and keeps only Heidi's rule for
who the first admin is; the admin_invites and admin_events tables are the
package's createManagerTables(), with no migration. The People actions
catch ManagerRefusal so a refused action stays a silent no-op.

With it: the last admin stays when two admins remove each other at the
same moment (the package locks the rows before counting).


Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 22:03:41 +01:00
..