fix for missing personal items added prior to joining org with personal ownership policy (#1955)

This commit is contained in:
mp-bw 2022-06-16 09:55:09 -04:00 committed by GitHub
parent f24388c1b5
commit 7c311fbb55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,11 +68,7 @@ namespace Bit.App.Pages
{ {
_personalOwnershipPolicyApplies = await policyService.PolicyAppliesToUser(PolicyType.PersonalOwnership); _personalOwnershipPolicyApplies = await policyService.PolicyAppliesToUser(PolicyType.PersonalOwnership);
var singleOrgPolicyApplies = await policyService.PolicyAppliesToUser(PolicyType.OnlyOrg); var singleOrgPolicyApplies = await policyService.PolicyAppliesToUser(PolicyType.OnlyOrg);
if (_personalOwnershipPolicyApplies && singleOrgPolicyApplies) if (_vaultFilterSelection == null || (_personalOwnershipPolicyApplies && singleOrgPolicyApplies))
{
VaultFilterDescription = _organizations.First().Name;
}
else if (_vaultFilterSelection == null)
{ {
VaultFilterDescription = AppResources.AllVaults; VaultFilterDescription = AppResources.AllVaults;
} }