From e93ea3753bee6b67fcf5c0b409c6bf5eabe54237 Mon Sep 17 00:00:00 2001 From: Cy Okeke Date: Tue, 29 Apr 2025 09:20:24 +0100 Subject: [PATCH] resolve the free org update issue Signed-off-by: Cy Okeke --- src/Admin/AdminConsole/Controllers/OrganizationsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/AdminConsole/Controllers/OrganizationsController.cs b/src/Admin/AdminConsole/Controllers/OrganizationsController.cs index dad5ca8f35..b8b0892bfe 100644 --- a/src/Admin/AdminConsole/Controllers/OrganizationsController.cs +++ b/src/Admin/AdminConsole/Controllers/OrganizationsController.cs @@ -255,7 +255,7 @@ public class OrganizationsController : Controller Seats = organization.Seats }; - if (model.PlanType == PlanType.Free && model.Seats > 2) + if (organization.PlanType != PlanType.Free && model.PlanType == PlanType.Free && model.Seats > 2) { TempData["Error"] = "Organizations with more than 2 seats cannot be downgraded to the Free plan"; return RedirectToAction("Edit", new { id });