1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-23 03:01:23 +01:00

Fix license signature containing LicenseType (#1917)

This commit is contained in:
Oscar Hinton 2022-03-16 16:15:36 +01:00 committed by GitHub
parent eee5caf1f8
commit e8cb8b67c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,7 @@ namespace Bit.Core.Models.Business
.Where(p =>
!p.Name.Equals(nameof(Signature)) &&
!p.Name.Equals(nameof(SignatureBytes)) &&
!p.Name.Equals(nameof(LicenseType)) &&
// UsersGetPremium was added in Version 2
(Version >= 2 || !p.Name.Equals(nameof(UsersGetPremium))) &&
// UseEvents was added in Version 3

View File

@ -85,6 +85,7 @@ namespace Bit.Core.Models.Business
.Where(p =>
!p.Name.Equals(nameof(Signature)) &&
!p.Name.Equals(nameof(SignatureBytes)) &&
!p.Name.Equals(nameof(LicenseType)) &&
(
!forHash ||
(