1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 07:07:32 -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
};
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 });