1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Remove provider orgs from org dropdown in the collection dialog (#5941)

This commit is contained in:
Robyn MacCallum
2023-08-04 10:04:53 -04:00
committed by GitHub
parent 1a949f11b8
commit 7f4741f464
2 changed files with 4 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
this.organizations$ = this.organizationService.organizations$.pipe(
map((orgs) =>
orgs
.filter((o) => o.canCreateNewCollections)
.filter((o) => o.canCreateNewCollections && !o.isProviderUser)
.sort(Utils.getSortFunction(this.i18nService, "name"))
)
);

View File

@@ -385,7 +385,9 @@ export class VaultComponent implements OnInit, OnDestroy {
this.collections = collections;
this.selectedCollection = selectedCollection;
this.canCreateCollections = allOrganizations?.some((o) => o.canCreateNewCollections);
this.canCreateCollections = allOrganizations?.some(
(o) => o.canCreateNewCollections && !o.isProviderUser
);
this.showBulkMove =
filter.type !== "trash" &&