mirror of
https://github.com/bitwarden/server.git
synced 2025-05-31 00:00:34 -05:00
Ignoring newer properties when generating the license's signature (#5832)
(cherry picked from commit b2c8c0230f2df6540cc75c41abcb2d856a70f793)
This commit is contained in:
parent
c969039ffd
commit
ae4b0f9943
@ -255,7 +255,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}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user