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(
|
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"))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -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" &&
|
||||||
|
|
Loading…
Reference in New Issue