mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
copy update on error
This commit is contained in:
@@ -551,7 +551,7 @@ namespace Bit.Core.Services
|
|||||||
if(!license.CanUse(_globalSettings.Installation.Id))
|
if(!license.CanUse(_globalSettings.Installation.Id))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("Invalid license. Make sure your license allows for on-premise " +
|
throw new BadRequestException("Invalid license. Make sure your license allows for on-premise " +
|
||||||
"hosting of organizations and that the installation id matches.");
|
"hosting of organizations and that the installation id matches your current installation.");
|
||||||
}
|
}
|
||||||
|
|
||||||
var plan = StaticStore.Plans.FirstOrDefault(p => p.Type == license.PlanType && !p.Disabled);
|
var plan = StaticStore.Plans.FirstOrDefault(p => p.Type == license.PlanType && !p.Disabled);
|
||||||
@@ -658,7 +658,7 @@ namespace Bit.Core.Services
|
|||||||
if(!license.CanUse(_globalSettings.Installation.Id))
|
if(!license.CanUse(_globalSettings.Installation.Id))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("Invalid license. Make sure your license allows for on-premise " +
|
throw new BadRequestException("Invalid license. Make sure your license allows for on-premise " +
|
||||||
"hosting of organizations and that the installation id matches.");
|
"hosting of organizations and that the installation id matches your current installation.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(license.Seats.HasValue && (!organization.Seats.HasValue || organization.Seats.Value > license.Seats.Value))
|
if(license.Seats.HasValue && (!organization.Seats.HasValue || organization.Seats.Value > license.Seats.Value))
|
||||||
|
|||||||
Reference in New Issue
Block a user