1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 19:43:34 +00:00

Add support for new collection access, hide passwords

This commit is contained in:
hinton
2020-05-21 15:36:47 +02:00
parent 0cd90be83a
commit 36f15c67d0
26 changed files with 95 additions and 31 deletions

View File

@@ -35,10 +35,15 @@ BEGIN
(
@CollectionId,
[Source].[Id],
[Source].[ReadOnly]
[Source].[ReadOnly],
[Source].[HidePasswords]
)
WHEN MATCHED AND [Target].[ReadOnly] != [Source].[ReadOnly] THEN
UPDATE SET [Target].[ReadOnly] = [Source].[ReadOnly]
WHEN MATCHED AND (
[Target].[ReadOnly] != [Source].[ReadOnly]
OR [Target].[HidePasswords] != [Source].[HidePasswords]
) THEN
UPDATE SET [Target].[ReadOnly] = [Source].[ReadOnly],
[Target].[HidePasswords] = [Source].[HidePasswords]
WHEN NOT MATCHED BY SOURCE
AND [Target].[CollectionId] = @CollectionId THEN
DELETE