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:
parent
4a7db112a0
commit
baee505d0d
@ -251,7 +251,10 @@ public class OrganizationLicense : ILicense
|
|||||||
!p.Name.Equals(nameof(Refresh))
|
!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)
|
.OrderBy(p => p.Name)
|
||||||
.Select(p => $"{p.Name}:{Utilities.CoreHelpers.FormatLicenseSignatureValue(p.GetValue(this, null))}")
|
.Select(p => $"{p.Name}:{Utilities.CoreHelpers.FormatLicenseSignatureValue(p.GetValue(this, null))}")
|
||||||
.Aggregate((c, n) => $"{c}|{n}");
|
.Aggregate((c, n) => $"{c}|{n}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user