prevent past due team plans to overuse (#6487)

* prevent past due team plans to overuse

* nit

* update ee ref
This commit is contained in:
hugocasa
2025-08-28 16:56:57 +00:00
committed by GitHub
parent 0cc11b3f31
commit 2ce11cea3b
17 changed files with 263 additions and 156 deletions
+3 -1
View File
@@ -415,7 +415,9 @@ async fn is_premium(
) -> JsonResult<bool> {
require_admin(authed.is_admin, &authed.username)?;
#[cfg(feature = "cloud")]
let premium = windmill_common::workspaces::is_premium_workspace(&_db, &_w_id).await;
let premium = windmill_common::workspaces::get_team_plan_status(&_db, &_w_id)
.await
.premium;
#[cfg(not(feature = "cloud"))]
let premium = false;
Ok(Json(premium))