mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-02 03:41:09 +01:00
Remove provider orgs from org dropdown in the collection dialog (#5941)
This commit is contained in:
parent
1a949f11b8
commit
7f4741f464
@ -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"))
|
||||
)
|
||||
);
|
||||
|
@ -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" &&
|
||||
|
Loading…
Reference in New Issue
Block a user