mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 15:24:51 -05:00
copy update on error
This commit is contained in:
parent
9f6c2a9cc7
commit
582728a083
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user