1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-27 10:23:48 +01:00

[PM-1070] filter out provider orgs from org filter (#4826)

This commit is contained in:
Jake Fink 2023-03-16 13:07:30 -04:00 committed by GitHub
parent ca0a525895
commit 94da79c3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,10 @@ import {
import { CollectionService } from "@bitwarden/common/abstractions/collection.service";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { OrganizationService } from "@bitwarden/common/abstractions/organization/organization.service.abstraction";
import {
isNotProviderUser,
OrganizationService,
} from "@bitwarden/common/abstractions/organization/organization.service.abstraction";
import { PolicyService } from "@bitwarden/common/abstractions/policy/policy.service.abstraction";
import { StateService } from "@bitwarden/common/abstractions/state.service";
import { PolicyType } from "@bitwarden/common/enums/policyType";
@ -135,7 +138,7 @@ export class VaultFilterService implements VaultFilterServiceAbstraction {
orgs = orgs.slice(0, 1);
}
if (orgs) {
orgs.forEach((org) => {
orgs.filter(isNotProviderUser).forEach((org) => {
const orgCopy = org as OrganizationFilter;
orgCopy.icon = "bwi-business";
const node = new TreeNode<OrganizationFilter>(orgCopy, headNode, orgCopy.name);