diff --git a/admin-web/server.py b/admin-web/server.py index a580b47..8407fce 100644 --- a/admin-web/server.py +++ b/admin-web/server.py @@ -2285,9 +2285,6 @@ class AdminHandler(BaseHTTPRequestHandler): ), "restart": {"mode": "async", "requested": restart_requested}}) elif path.startswith("/api/users/") and path.endswith("/enabled"): name = urllib.parse.unquote(path[len("/api/users/"):-len("/enabled")]) - if name == "main": - self.send_error_json(400, "main user cannot be disabled") - return enabled = bool(body.get("enabled")) try: with FileLock(USER_LOCK_FILE): diff --git a/admin-web/static/app.js b/admin-web/static/app.js index 48ca8df..23a6791 100644 --- a/admin-web/static/app.js +++ b/admin-web/static/app.js @@ -1302,8 +1302,8 @@ function renderUsers() { ${escapeHtml(user.name)}${user.main ? ` ${escapeHtml(t("main"))}` : ""}