1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-28 04:08:47 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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( this.organizations$ = this.organizationService.organizations$.pipe(
map((orgs) => map((orgs) =>
orgs orgs
.filter((o) => o.canCreateNewCollections) .filter((o) => o.canCreateNewCollections && !o.isProviderUser)
.sort(Utils.getSortFunction(this.i18nService, "name")) .sort(Utils.getSortFunction(this.i18nService, "name"))
) )
); );

View File

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