diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index 12a933c65c..abcff3c060 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -94,12 +94,8 @@ namespace Bit.Api.Controllers Dictionary> collectionCiphersGroupDict = null; if (hasOrgs) { - var keyMatches = ciphers.Select(c => c.Id); // Soft deletes not filtered in tweener "Get" methods var collectionCiphers = await _collectionCipherRepository.GetManyByUserIdAsync(userId); - collectionCiphersGroupDict = collectionCiphers - .Where(c => keyMatches.Contains(c.CipherId)) - .GroupBy(c => c.CipherId) - .ToDictionary(s => s.Key); + collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key); } var responses = ciphers.Select(c => new CipherDetailsResponseModel(c, _globalSettings, diff --git a/src/Sql/dbo/Stored Procedures/Cipher_SoftDelete.sql b/src/Sql/dbo/Stored Procedures/Cipher_SoftDelete.sql index 035ebf8b12..e329a1aaa3 100644 --- a/src/Sql/dbo/Stored Procedures/Cipher_SoftDelete.sql +++ b/src/Sql/dbo/Stored Procedures/Cipher_SoftDelete.sql @@ -1,5 +1,5 @@ CREATE PROCEDURE [dbo].[Cipher_SoftDelete] - @Ids AS [dbo].[GuidIdArray] READONLY, + @Ids AS [dbo].[GuidIdArray] READONLY, @UserId AS UNIQUEIDENTIFIER AS BEGIN