1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-08 19:18:02 +01:00
bitwarden-browser/libs/importer/src
aj-rosado 305fd39871
[AC-1782] Flexible collections import behavior in Password Manager and Admin Console (#6888)
* Added logic to only return organisations where user has import permissions and collections that he manages on Import

* Changed the UnassignedCollections validation logic

* Added validation to check if the user is coming from AdminConsole on the import component

* Added import collection service abstraction to allow get admin collections

* Corrected feature flag reads on import component

* Refactor import component methods ngOnInit and performImport to improve codescene
Using FeatureFlag Observable

* Modified validation to allow import if user has organizations to import into

* Using the new organization flexiblecollections property on import

* Created collection-admin-import.service to return all the org collections to the import on Admin Console

* Small changes on import flexible collections

* Fix linting issues

* changed canAccessImport rules and deprecated canAccessImportExport

* Validating if user canAccessImportExport instead of admin before calling the handleOrganizationImportInit.

* AC-2095 - Corrected getAllAdminCollections from ImportCollectionAdminService to properly get all the collections on AdminConsole

* Reverting AC-2095

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-01-29 15:11:19 +00:00
..
components [AC-1782] Flexible collections import behavior in Password Manager and Admin Console (#6888) 2024-01-29 15:11:19 +00:00
importers Added capability on psono importer to add sub-folders (#7602) 2024-01-24 12:55:43 +00:00
models [PM-5164] Update description of passwordsafe xml importer (#7115) 2023-12-13 12:16:27 -05:00
services [AC-1782] Flexible collections import behavior in Password Manager and Admin Console (#6888) 2024-01-29 15:11:19 +00:00
index.ts [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00