1
0
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:
jaasen-livefront 2025-05-06 17:15:26 -07:00
parent 25f5cbe58e
commit af1431c02d
No known key found for this signature in database

View File

@ -45,10 +45,19 @@ BEGIN
AND CG.ReadOnly = 0
),
AccessibleCiphers AS (
SELECT CipherId FROM UserCollectionAccess
SELECT CipherId
FROM UserCollectionAccess
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 (
SELECT
ST.*