fix: indentation in frontend handlers and restore dhcp auto-sync toast

This commit is contained in:
2026-07-28 19:32:17 +00:00
parent 8ae60ab8cf
commit 6d30f1387e
3 changed files with 17 additions and 12 deletions
+7 -7
View File
@@ -159,16 +159,16 @@ function openEditPermissionsModal(user) {
for (const sub of SUBSYSTEMS) {
const level = document.getElementById('edit-perm-' + sub.key).value;
if (level && level !== '—') {
perms[sub.key] = level;
}
perms[sub.key] = level;
}
}
if (user.username === BUILTIN_ADMIN) {
toast('Cannot modify permissions for builtin admin', 'error');
return;
}
if (user.username === BUILTIN_ADMIN) {
toast('Cannot modify permissions for builtin admin', 'error');
return;
}
const res = await apiFetch('/api/auth/users/' + encodeURIComponent(user.username), {
const res = await apiFetch('/api/auth/users/' + encodeURIComponent(user.username), {
method: 'POST',
body: { permissions: perms },
});