mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Fix the bug for free bitwarden Families menu (#14155)
This commit is contained in:
@@ -59,8 +59,8 @@ export class FreeFamiliesPolicyService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const { belongToOneEnterpriseOrgs, isFreeFamilyPolicyEnabled } = orgStatus;
|
const { belongToOneEnterpriseOrgs, isFreeFamilyPolicyEnabled } = orgStatus;
|
||||||
const canManageSponsorships = organizations.filter((org) => org.canManageSponsorships);
|
const hasSponsorshipOrgs = organizations.some((org) => org.canManageSponsorships);
|
||||||
return canManageSponsorships && !(belongToOneEnterpriseOrgs && isFreeFamilyPolicyEnabled);
|
return hasSponsorshipOrgs && !(belongToOneEnterpriseOrgs && isFreeFamilyPolicyEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnterpriseOrganizationsAndFetchPolicy(): Observable<EnterpriseOrgStatus> {
|
checkEnterpriseOrganizationsAndFetchPolicy(): Observable<EnterpriseOrgStatus> {
|
||||||
|
|||||||
Reference in New Issue
Block a user