From 796279343eed7b2519796496d3bfce81d15c8de1 Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:04:38 +0300 Subject: [PATCH] API User Deletion fixes --- src/api/users.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/api/users.rs b/src/api/users.rs index d98790d..848bb45 100644 --- a/src/api/users.rs +++ b/src/api/users.rs @@ -205,7 +205,15 @@ pub(super) async fn patch_user( cfg.validate() .map_err(|e| ApiFailure::bad_request(format!("config validation failed: {}", e)))?; - let revision = save_config_to_disk(&shared.config_path, &cfg).await?; + let touched_sections = [ + AccessSection::Users, + AccessSection::UserAdTags, + AccessSection::UserMaxTcpConns, + AccessSection::UserExpirations, + AccessSection::UserDataQuota, + AccessSection::UserMaxUniqueIps, + ]; + let revision = save_access_sections_to_disk(&shared.config_path, &cfg, &touched_sections).await?; drop(_guard); if let Some(limit) = updated_limit { shared.ip_tracker.set_user_limit(user, limit).await;