mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
Additional logic around filter display (#1951)
This commit is contained in:
@@ -249,6 +249,12 @@ namespace Bit.Core.Services
|
||||
|
||||
public async Task<bool> ShouldShowVaultFilterAsync()
|
||||
{
|
||||
var personalOwnershipPolicyApplies = await PolicyAppliesToUser(PolicyType.PersonalOwnership);
|
||||
var singleOrgPolicyApplies = await PolicyAppliesToUser(PolicyType.OnlyOrg);
|
||||
if (personalOwnershipPolicyApplies && singleOrgPolicyApplies)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var organizations = await _organizationService.GetAllAsync();
|
||||
return organizations?.Any() ?? false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user