Commit Graph
2 Commits
Author SHA1 Message Date
ancsemi 97a23e0598 Admin role fixes: reset to default makes it again, and a deleted one stays deleted
- Reset roles to default now makes the Admin role again and gives it to the
  admin, as on a new server, instead of leaving admin_role_id pointing at
  the role that was just deleted.
- A server converted by the first version of the migration, whose admin had
  since deleted the Admin role, no longer gets a new one on upgrade.
2026-10-02 07:57:19 -04:00
ancsemi 1f63295e01 The Admin role follows admin: a new server gets the role and its first admin wears it, and whoever becomes admin later (a transfer, admin recovery, the ADMIN_USERNAME bootstrap) is given it too. Servers converted before this keep the role they already have (#5707) 2026-09-30 21:36:25 -04:00