mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
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. |
||
|---|---|---|
| .. | ||
| api | ||
| management | ||
| migrations | ||
| static/operations | ||
| templates/operations | ||
| templatetags | ||
| tests | ||
| __init__.py | ||
| apps.py | ||
| claims.py | ||
| jobs.py | ||
| models.py | ||
| urls.py | ||
| utils.py | ||
| views.py | ||
| worker.py | ||