1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-28 06:03:40 +00:00

Add the free family policy behind flag

This commit is contained in:
Cy Okeke
2024-11-07 12:06:12 +01:00
parent 91c2e305f1
commit a8cd718405
2 changed files with 11 additions and 2 deletions

View File

@@ -20,10 +20,17 @@ export class AppComponent extends BaseAppComponent implements OnInit {
this.policyListService.addPolicies([
new MaximumVaultTimeoutPolicy(),
new DisablePersonalVaultExportPolicy(),
new FreeFamiliesSponsorshipPolicy(),
new ActivateAutofillPolicy(),
]);
this.configService
.getFeatureFlag(FeatureFlag.DisableFreeFamiliesSponsorship)
.then((isFreeFamilyEnabled) => {
if (isFreeFamilyEnabled) {
this.policyListService.addPolicies([new FreeFamiliesSponsorshipPolicy()]);
}
this.policyListService.addPolicies([new ActivateAutofillPolicy()]);
});
this.configService.getFeatureFlag(FeatureFlag.IdpAutoSubmitLogin).then((enabled) => {
if (
enabled &&