mirror of
https://github.com/bitwarden/mobile
synced 2025-02-07 15:38:51 +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…
x
Reference in New Issue
Block a user