1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-07-02 11:34:54 +02: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);
}