mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +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;
|
||||
}
|
||||
const { belongToOneEnterpriseOrgs, isFreeFamilyPolicyEnabled } = orgStatus;
|
||||
const canManageSponsorships = organizations.filter((org) => org.canManageSponsorships);
|
||||
return canManageSponsorships && !(belongToOneEnterpriseOrgs && isFreeFamilyPolicyEnabled);
|
||||
const hasSponsorshipOrgs = organizations.some((org) => org.canManageSponsorships);
|
||||
return hasSponsorshipOrgs && !(belongToOneEnterpriseOrgs && isFreeFamilyPolicyEnabled);
|
||||
}
|
||||
|
||||
checkEnterpriseOrganizationsAndFetchPolicy(): Observable<EnterpriseOrgStatus> {
|
||||
|
||||
Reference in New Issue
Block a user