mirror of
https://github.com/bitwarden/server.git
synced 2025-07-18 08:00:59 -05:00
resolve the free org update issue
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
@ -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 });
|
||||||
|
Reference in New Issue
Block a user