diff --git a/src/Api/Tools/Controllers/ImportCiphersController.cs b/src/Api/Tools/Controllers/ImportCiphersController.cs index fab5037040..0d07d5bc47 100644 --- a/src/Api/Tools/Controllers/ImportCiphersController.cs +++ b/src/Api/Tools/Controllers/ImportCiphersController.cs @@ -24,7 +24,6 @@ public class ImportCiphersController : Controller private readonly GlobalSettings _globalSettings; private readonly ICollectionRepository _collectionRepository; private readonly IAuthorizationService _authorizationService; - private readonly IOrganizationRepository _organizationRepository; public ImportCiphersController( ICipherService cipherService, @@ -43,7 +42,6 @@ public class ImportCiphersController : Controller _globalSettings = globalSettings; _collectionRepository = collectionRepository; _authorizationService = authorizationService; - _organizationRepository = organizationRepository; } [HttpPost("import")] @@ -98,13 +96,6 @@ public class ImportCiphersController : Controller return true; } - //If flexible collections is disabled the user cannot continue with the import - var orgFlexibleCollections = await _organizationRepository.GetByIdAsync(orgId); - if (!orgFlexibleCollections?.FlexibleCollections ?? false) - { - return false; - } - //Users allowed to import if they CanCreate Collections if (!(await _authorizationService.AuthorizeAsync(User, collections, BulkCollectionOperations.Create)).Succeeded) {