1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/operations
catborise b65d2abaf6 fix(admin): two administrators at once leave a superuser and one user per address
An administrator cannot block, delete or demote their own account, but
with two superusers each could block the other at the same moment, and
none was left. Changes of the panel's users (create, edit, block,
unblock, delete, group edits, and a user's own profile) now run one at
a time, under a claim every worker sees, and a block, delete or edit
that would leave no active superuser is refused.

Under that claim each change reads the user or group as saved now: the
edit forms' fingerprint is compared there, a block writes only the
account's Active flag, and a profile saved while an administrator
blocks the account keeps the block.

A user's e-mail address is one user's, case aside, so that "Lost OTP?"
can mail it; two users created or edited at once each passed that check.
The form checks the address again under the same claim, with the save.
2026-11-13 14:54:51 +03:00
..
api fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
management feat(operations): the job worker 2026-10-14 23:27:57 +03:00
migrations fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
static/operations fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
templates/operations fix(ui): the Logs and Jobs page links fit a phone screen 2026-11-10 09:05:01 +03:00
templatetags feat(operations): the job panel and job pages speak the page's language 2026-11-02 23:33:34 +03:00
tests fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
__init__.py feat(operations): job, claim and worker lease models 2026-10-14 23:27:57 +03:00
apps.py refactor(settings): SQLite's WAL mode is an init_command 2026-11-06 11:01:51 +03:00
claims.py fix(admin): two administrators at once leave a superuser and one user per address 2026-11-13 14:54:51 +03:00
jobs.py fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
models.py fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
urls.py feat(operations): jobs page 2026-10-14 23:27:57 +03:00
utils.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
views.py fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
worker.py fix(operations): a housekeeping pass is not started while one runs 2026-11-10 13:48:14 +03:00