mirror of
https://github.com/TautvydasDerzinskas/Thingport.git
synced 2026-10-19 05:10:01 -05:00
Admins can now make members admins and delete members from the Users page. The owner, the first admin, can also demote and delete other admins; nobody can demote or delete the owner, or themselves. A migration adds the owner flag and gives it to each existing instance's longest-standing admin, and the first sign-up of a fresh instance takes an advisory lock so concurrent sign-ups can't make two owners. Deleting a user removes their models with every file, their tag mosaics and storage folder, then the account. Roles are now read from the database on each request, so a demotion or deletion takes effect at once. Both actions are logged under the acting admin.