1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-23 17:07:42 +01:00

dont check UsersGetPremium for version 1 licenses

This commit is contained in:
Kyle Spearrin 2017-11-07 21:12:50 -05:00
parent 5c7ff94657
commit f7cb6e403d

View File

@ -113,6 +113,8 @@ namespace Bit.Core.Models.Business
.Where(p =>
!p.Name.Equals(nameof(Signature)) &&
!p.Name.Equals(nameof(SignatureBytes)) &&
// UsersGetPremium was added in Version 2
(Version == 1 || !p.Name.Equals(nameof(UsersGetPremium))) &&
(
!forHash ||
(