From b315e8413601e2d36317e2ad778b4148f1e7fdba Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:09:11 +0300 Subject: [PATCH] Update users.rs --- src/api/users.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/api/users.rs b/src/api/users.rs index 6265aea..da360c7 100644 --- a/src/api/users.rs +++ b/src/api/users.rs @@ -205,15 +205,7 @@ pub(super) async fn patch_user( cfg.validate() .map_err(|e| ApiFailure::bad_request(format!("config validation failed: {}", e)))?; - 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?; + let revision = save_config_to_disk(&shared.config_path, &cfg).await?; drop(_guard); if let Some(limit) = updated_limit { shared.ip_tracker.set_user_limit(user, limit).await;