fix: the webui does not allow to disable the last admin now.
Release / release (push) Failing after 4s

This commit is contained in:
slawek committed 2026-11-22 19:48:02 +01:00
1 parent 5fff009320
commit ff0c93ed73
10 files changed
+46 -15

No files matched your search

+2
View File
@@ -327,6 +327,8 @@ creation, without a maximum, signed with the server's key; `/auth` never issues
admin token may call everything, and only an admin token may change `admins`: create it, rename a
group to it, change or remove it, add or take out its members, or remove a user who is a member
of it. The first member is added with `linux-manager-group` on the server, which acts as root.
The last enabled member of `admins` is not disabled, through the API or `linux-manager-user`, so
an administrator who can sign in remains; another member is enabled or added first.
Consequences: Removing a user from `admins` takes effect at the next request, without waiting
for the user's tokens to expire. Membership of `admins` changes only through root on the server.