mirror of
https://github.com/bitwarden/server.git
synced 2025-05-08 13:12:16 -05:00
fix AccessibleCiphers query
This commit is contained in:
parent
25f5cbe58e
commit
af1431c02d
@ -45,10 +45,19 @@ BEGIN
|
|||||||
AND CG.ReadOnly = 0
|
AND CG.ReadOnly = 0
|
||||||
),
|
),
|
||||||
AccessibleCiphers AS (
|
AccessibleCiphers AS (
|
||||||
SELECT CipherId FROM UserCollectionAccess
|
SELECT CipherId
|
||||||
|
FROM UserCollectionAccess
|
||||||
|
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT CipherId FROM GroupCollectionAccess
|
|
||||||
),
|
SELECT GC.CipherId
|
||||||
|
FROM GroupCollectionAccess AS GC
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1
|
||||||
|
FROM UserCollectionAccess AS UA
|
||||||
|
WHERE UA.CipherId = GC.CipherId
|
||||||
|
)
|
||||||
|
)
|
||||||
SecurityTasks AS (
|
SecurityTasks AS (
|
||||||
SELECT
|
SELECT
|
||||||
ST.*
|
ST.*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user