diff --git a/src/Core/Models/Business/OrganizationLicense.cs b/src/Core/Models/Business/OrganizationLicense.cs index 577e41f8e9..3769835c7e 100644 --- a/src/Core/Models/Business/OrganizationLicense.cs +++ b/src/Core/Models/Business/OrganizationLicense.cs @@ -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 && diff --git a/src/Core/Models/Business/UserLicense.cs b/src/Core/Models/Business/UserLicense.cs index 16ee55bd4c..71a629c78f 100644 --- a/src/Core/Models/Business/UserLicense.cs +++ b/src/Core/Models/Business/UserLicense.cs @@ -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); }