mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-25 12:05:59 +01:00
Fixed vault filter display issue with personal ownership policy (#1950)
This commit is contained in:
parent
388ad4e840
commit
51a5f58258
@ -250,8 +250,7 @@ namespace Bit.Core.Services
|
|||||||
public async Task<bool> ShouldShowVaultFilterAsync()
|
public async Task<bool> ShouldShowVaultFilterAsync()
|
||||||
{
|
{
|
||||||
var organizations = await _organizationService.GetAllAsync();
|
var organizations = await _organizationService.GetAllAsync();
|
||||||
var personalOwnershipPolicyApplies = await PolicyAppliesToUser(PolicyType.PersonalOwnership);
|
return organizations?.Any() ?? false;
|
||||||
return (organizations?.Any() ?? false) && !personalOwnershipPolicyApplies;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool? GetPolicyBool(Policy policy, string key)
|
private bool? GetPolicyBool(Policy policy, string key)
|
||||||
|
Loading…
Reference in New Issue
Block a user