1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

Assign usepolicies when upgrading (#838)

This commit is contained in:
Kyle Spearrin 2020-07-28 09:28:11 -04:00 committed by GitHub
parent ca52da8698
commit 69e8860767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,6 +259,7 @@ namespace Bit.Core.Services
organization.Use2fa = newPlan.Use2fa;
organization.UseApi = newPlan.UseApi;
organization.SelfHost = newPlan.SelfHost;
organization.UsePolicies = newPlan.UsePolicies;
organization.UsersGetPremium = newPlan.UsersGetPremium || upgrade.PremiumAccessAddon;
organization.Plan = newPlan.Name;
organization.Enabled = success;