1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

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);
var singleOrgPolicyApplies = await policyService.PolicyAppliesToUser(PolicyType.OnlyOrg);
if (_personalOwnershipPolicyApplies && singleOrgPolicyApplies)
{
VaultFilterDescription = _organizations.First().Name;
}
else if (_vaultFilterSelection == null)
if (_vaultFilterSelection == null || (_personalOwnershipPolicyApplies && singleOrgPolicyApplies))
{
VaultFilterDescription = AppResources.AllVaults;
}