diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ff156..003b492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,6 +95,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Lock the primary admin's Allowed Systems selector in the user editor; the first user always has access to every system and the badges are now read-only with all systems shown as allowed. - Default `audioEncodingPreset` seeded into the settings table is now `mp3_32k` (matching the dropdown's "(default)" label and the Go `ParseEncodingPreset` fallback) instead of `aac_lc_32k`. New installs diff --git a/frontend/src/components/admin/UsersPanel.tsx b/frontend/src/components/admin/UsersPanel.tsx index 05325db..2e4573f 100644 --- a/frontend/src/components/admin/UsersPanel.tsx +++ b/frontend/src/components/admin/UsersPanel.tsx @@ -107,9 +107,13 @@ export default function UsersPanel() { e.preventDefault(); try { if (editingId != null) { + const payload = formToUpdatePayload(form); + if (editingId === 1) { + payload.systemsJson = null; + } await updateUser({ id: editingId, - ...formToUpdatePayload(form), + ...payload, }).unwrap(); } else { await createUser(formToCreatePayload(form)).unwrap(); @@ -403,25 +407,41 @@ export default function UsersPanel() {