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:
parent
960c2567bd
commit
9cc12fd577
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user