mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 05:57:42 +01:00
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>