mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 13:38:13 -05:00
null check on license key
This commit is contained in:
parent
29d62be82c
commit
45db73c6e1
@ -188,7 +188,7 @@ namespace Bit.Core.Models.Business
|
||||
{
|
||||
var valid =
|
||||
globalSettings.Installation.Id == InstallationId &&
|
||||
organization.LicenseKey.Equals(LicenseKey) &&
|
||||
organization.LicenseKey != null && organization.LicenseKey.Equals(LicenseKey) &&
|
||||
organization.Enabled == Enabled &&
|
||||
organization.PlanType == PlanType &&
|
||||
organization.Seats == Seats &&
|
||||
|
@ -134,7 +134,7 @@ namespace Bit.Core.Models.Business
|
||||
if(Version == 1)
|
||||
{
|
||||
return
|
||||
user.LicenseKey.Equals(LicenseKey) &&
|
||||
user.LicenseKey != null && user.LicenseKey.Equals(LicenseKey) &&
|
||||
user.Premium == Premium &&
|
||||
user.Email.Equals(Email, StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user