1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-25 13:24:50 -05:00

Ignoring newer properties when generating the license's signature (#5832)

(cherry picked from commit b2c8c0230f2df6540cc75c41abcb2d856a70f793)
This commit is contained in:
Conner Turnbull 2025-05-19 10:54:11 -04:00 committed by Conner Turnbull
parent 4a7db112a0
commit baee505d0d
No known key found for this signature in database

View File

@ -251,7 +251,10 @@ public class OrganizationLicense : ILicense
!p.Name.Equals(nameof(Refresh))
)
) &&
!p.Name.Equals(nameof(UseRiskInsights)))
// any new fields added need to be added here so that they're ignored
!p.Name.Equals(nameof(UseRiskInsights)) &&
!p.Name.Equals(nameof(UseAdminSponsoredFamilies)) &&
!p.Name.Equals(nameof(UseOrganizationDomains)))
.OrderBy(p => p.Name)
.Select(p => $"{p.Name}:{Utilities.CoreHelpers.FormatLicenseSignatureValue(p.GetValue(this, null))}")
.Aggregate((c, n) => $"{c}|{n}");