1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Fix: users can import in PM if they can create new collections (#12472)

This commit is contained in:
Thomas Rittson
2024-12-19 21:53:39 +10:00
committed by GitHub
parent 51f6594d4b
commit 23212fb9ae

View File

@@ -290,7 +290,9 @@ export class ImportComponent implements OnInit, OnDestroy, AfterViewInit {
private async initializeOrganizations() {
this.organizations$ = concat(
this.organizationService.memberOrganizations$.pipe(
map((orgs) => orgs.filter((org) => org.canAccessImport)),
// Import is an alternative way to create collections during onboarding, so import from Password Manager
// is available to any user who can create collections in the organization.
map((orgs) => orgs.filter((org) => org.canAccessImport || org.canCreateNewCollections)),
map((orgs) => orgs.sort(Utils.getSortFunction(this.i18nService, "name"))),
),
);