From 7672e0973c7c0a797573429f7a2e40c77ec033d3 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sat, 9 Mar 2024 22:44:57 -0800 Subject: [PATCH] fix(webserver): incorrect node limit check on worker register (#1652) * fix(webserver): incorrect node limit check on worker register * update changelog.md * fix --------- Co-authored-by: SpeedCrash100 --- CHANGELOG.md | 7 ++++++- ee/tabby-webserver/src/service/mod.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72673626dfeb..00d05b2349ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -# v0.9.0 [Unreleased] +# v0.9.1 [UNRELEASED] + +## Fixes and Improvements +* Fix worker registration check against enterprise licenses. + +# v0.9.0 ## Features diff --git a/ee/tabby-webserver/src/service/mod.rs b/ee/tabby-webserver/src/service/mod.rs index 26e9a6e3bf65..4521cae6634c 100644 --- a/ee/tabby-webserver/src/service/mod.rs +++ b/ee/tabby-webserver/src/service/mod.rs @@ -163,7 +163,7 @@ impl WorkerService for ServerContext { .await .map_err(|_| RegisterWorkerError::RequiresEnterpriseLicense)?; - if license.check_node_limit(count_workers + 1) { + if !license.check_node_limit(count_workers + 1) { return Err(RegisterWorkerError::RequiresEnterpriseLicense); }