1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-24 11:55:38 +01:00

check enabled too

This commit is contained in:
Kyle Spearrin 2018-08-29 13:45:58 -04:00
parent 960c2567bd
commit 9cc12fd577
2 changed files with 3 additions and 2 deletions

View File

@ -376,7 +376,7 @@ namespace Bit.App.Services
{
_cryptoService.SetOrgKeys(profile.Result);
_appSettingsService.OrganizationGivesPremium =
profile.Result?.Organizations?.Any(o => o.UsersGetPremium) ?? false;
profile.Result?.Organizations?.Any(o => o.UsersGetPremium && o.Enabled) ?? false;
}
}

View File

@ -543,7 +543,8 @@ namespace Bit.App.Services
}
_cryptoService.SetOrgKeys(profile);
_appSettingsService.OrganizationGivesPremium = profile.Organizations?.Any(o => o.UsersGetPremium) ?? false;
_appSettingsService.OrganizationGivesPremium =
profile.Organizations?.Any(o => o.UsersGetPremium && o.Enabled) ?? false;
return Task.FromResult(0);
}