1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

limit update to available subvaults

This commit is contained in:
Kyle Spearrin 2017-04-18 09:51:38 -04:00
parent 3459be8143
commit 4da172a94b

View File

@ -28,7 +28,8 @@ BEGIN
ON
[Target].[SubvaultId] = [Source].[Id]
AND [Target].[CipherId] = @CipherId
WHEN NOT MATCHED BY TARGET THEN
WHEN NOT MATCHED BY TARGET
AND [Source].[Id] IN (SELECT [SubvaultId] FROM [AvailableSubvaultsCTE]) THEN
INSERT VALUES
(
[Source].[Id],