diff --git a/js/apps/admin-ui/src/user/EditUser.tsx b/js/apps/admin-ui/src/user/EditUser.tsx index 6b52e645aea1..843646152ea1 100644 --- a/js/apps/admin-ui/src/user/EditUser.tsx +++ b/js/apps/admin-ui/src/user/EditUser.tsx @@ -74,6 +74,7 @@ export default function EditUser() { isServiceUser: serviceUsers.some( (serviceUser) => serviceUser.id === user.id ), + isDefaultUser: user.username?.toLowerCase() === "default", }; }, ({ user, bruteForced, isServiceUser }) => { @@ -225,7 +226,11 @@ const EditUserForm = ({ , ]), ]} - onToggle={(value) => save({ ...user, enabled: value })} + onToggle={(value) => { + if (user.username?.toLowerCase() != "default") { + save({ ...user, enabled: value }); + } + }} isEnabled={user.enabled} /> )}