1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 10:32:49 -05:00

Resolve review comments

This commit is contained in:
hinton
2020-05-22 22:16:01 +02:00
parent 28fe86ecff
commit f2348d2264
4 changed files with 5 additions and 19 deletions

View File

@ -3,22 +3,8 @@ RETURNS TABLE
AS RETURN
SELECT
C.*,
CASE
WHEN
OU.[AccessAll] = 1
OR G.[AccessAll] = 1
OR CU.[ReadOnly] = 0
OR CG.[ReadOnly] = 0
THEN 0
ELSE 1
END [ReadOnly],
CASE
WHEN
CU.[HidePasswords] = 0
OR CG.[HidePasswords] = 0
THEN 0
ELSE 1
END [HidePasswords]
COALESCE(CU.[ReadOnly], CG.[ReadOnly], 0) AS [ReadOnly],
COALESCE(CU.[HidePasswords], CG.[HidePasswords], 0) AS [HidePasswords]
FROM
[dbo].[CollectionView] C
INNER JOIN