1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 10:32:49 -05: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

@ -23,6 +23,13 @@ SELECT
THEN 1
ELSE 0
END [Edit],
CASE
WHEN
CU.[HidePasswords] = 0
OR CG.[HidePasswords] = 0
THEN 1
ELSE 0
END [ViewPassword],
CASE
WHEN O.[UseTotp] = 1
THEN 1
@ -55,6 +62,7 @@ UNION ALL
SELECT
*,
1 [Edit],
1 [ViewPassword],
0 [OrganizationUseTotp]
FROM
[dbo].[CipherDetails](@UserId)

View File

@ -11,7 +11,14 @@ SELECT
OR CG.[ReadOnly] = 0
THEN 0
ELSE 1
END [ReadOnly]
END [ReadOnly],
CASE
WHEN
CU.[HidePasswords] = 0
OR CG.[HidePasswords] = 0
THEN 0
ELSE 1
END [HidePasswords]
FROM
[dbo].[CollectionView] C
INNER JOIN