From 279f5d5fd7af2df55902c706859ec07f569cdb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0spik?= Date: Mon, 27 Apr 2026 08:47:52 +0300 Subject: [PATCH] fix: add new_user_hours to configuration limits (#729) Signed-off-by: ispik --- crates/delta/src/routes/root.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/delta/src/routes/root.rs b/crates/delta/src/routes/root.rs index 6fd37a19..14ead75c 100644 --- a/crates/delta/src/routes/root.rs +++ b/crates/delta/src/routes/root.rs @@ -92,6 +92,8 @@ pub struct GlobalLimits { /// restrict server creation to these users. /// if blank, all users can create servers pub restrict_server_creation: Vec, + /// New user hours + new_user_hours: i64, } /// # User Limits @@ -231,6 +233,7 @@ pub async fn root() -> Result> { .limits .global .restrict_server_creation, + new_user_hours: config.features.limits.global.new_user_hours as i64, }, new_user: UserLimits::from_feature_limits(config.features.limits.new_user), default: UserLimits::from_feature_limits(config.features.limits.default),