@@ -399,7 +399,6 @@ public bool VerifyData(
399399 var installationId = claimsPrincipal . GetValue < Guid > ( nameof ( InstallationId ) ) ;
400400 var licenseKey = claimsPrincipal . GetValue < string > ( nameof ( LicenseKey ) ) ;
401401 var enabled = claimsPrincipal . GetValue < bool > ( nameof ( Enabled ) ) ;
402- var planType = claimsPrincipal . GetValue < PlanType > ( nameof ( PlanType ) ) ;
403402 var seats = claimsPrincipal . GetValue < int ? > ( nameof ( Seats ) ) ;
404403 var maxCollections = claimsPrincipal . GetValue < short ? > ( nameof ( MaxCollections ) ) ;
405404 var useGroups = claimsPrincipal . GetValue < bool > ( nameof ( UseGroups ) ) ;
@@ -425,12 +424,18 @@ public bool VerifyData(
425424 var useOrganizationDomains = claimsPrincipal . GetValue < bool > ( nameof ( UseOrganizationDomains ) ) ;
426425 var useAutomaticUserConfirmation = claimsPrincipal . GetValue < bool > ( nameof ( UseAutomaticUserConfirmation ) ) ;
427426
427+ var claimedPlanType = claimsPrincipal . GetValue < PlanType > ( nameof ( PlanType ) ) ;
428+
429+ var planTypesMatch = claimedPlanType == PlanType . FamiliesAnnually
430+ ? organization . PlanType is PlanType . FamiliesAnnually or PlanType . FamiliesAnnually2025
431+ : organization . PlanType == claimedPlanType ;
432+
428433 return issued <= DateTime . UtcNow &&
429434 expires >= DateTime . UtcNow &&
430435 installationId == globalSettings . Installation . Id &&
431436 licenseKey == organization . LicenseKey &&
432437 enabled == organization . Enabled &&
433- planType == organization . PlanType &&
438+ planTypesMatch &&
434439 seats == organization . Seats &&
435440 maxCollections == organization . MaxCollections &&
436441 useGroups == organization . UseGroups &&
0 commit comments