Fixed vault filter display issue with personal ownership policy (#1950)

This commit is contained in:
mp-bw 2022-06-13 09:30:32 -04:00 committed by GitHub
parent 388ad4e840
commit 51a5f58258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -250,8 +250,7 @@ namespace Bit.Core.Services
public async Task<bool> ShouldShowVaultFilterAsync()
{
var organizations = await _organizationService.GetAllAsync();
var personalOwnershipPolicyApplies = await PolicyAppliesToUser(PolicyType.PersonalOwnership);
return (organizations?.Any() ?? false) && !personalOwnershipPolicyApplies;
return organizations?.Any() ?? false;
}
private bool? GetPolicyBool(Policy policy, string key)