Skip to content

Commit

Permalink
Fix: users can import in PM if they can create new collections (#12472)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliykat authored Dec 19, 2024
1 parent 51f6594 commit 23212fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/importer/src/components/import.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))),
),
);
Expand Down

0 comments on commit 23212fb

Please sign in to comment.