1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-17 23:50:58 -05:00

resolve the free org update issue

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
Cy Okeke
2025-04-29 09:20:24 +01:00
parent 8ff30863ee
commit e93ea3753b

View File

@ -255,7 +255,7 @@ public class OrganizationsController : Controller
Seats = organization.Seats 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"; TempData["Error"] = "Organizations with more than 2 seats cannot be downgraded to the Free plan";
return RedirectToAction("Edit", new { id }); return RedirectToAction("Edit", new { id });