1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

[AC-1779] Add comment to clarify ExpirationWithoutGracePeriod in OrganizationLicense (#3403)

* add the validation for version 12 and above

* We needed comments only
This commit is contained in:
cyprain-okeke 2024-06-11 15:26:53 +01:00 committed by GitHub
parent a60f70dde5
commit f615858724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,6 +337,10 @@ public class OrganizationLicense : ILicense
valid = organization.UseCustomPermissions == UseCustomPermissions;
}
/*Version 12 added ExpirationWithoutDatePeriod, but that property is informational only and is not saved
to the Organization object. It's validated as part of the hash but does not need to be validated here.
*/
if (valid && Version >= 13)
{
valid = organization.UseSecretsManager == UseSecretsManager &&