1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 00:03:54 +00:00
This commit is contained in:
jaasen-livefront
2025-11-17 13:20:05 -08:00
parent f75cdaf706
commit a8d8fcfbd1
3 changed files with 28 additions and 4 deletions

View File

@@ -27,6 +27,6 @@ SELECT
END [FolderId],
C.[DeletedDate],
C.[Reprompt],
C.[Key],
C.[Key]
FROM
[dbo].[Cipher] C

View File

@@ -12,7 +12,19 @@ WITH [CTE] AS (
AND [Status] = 2 -- Confirmed
)
SELECT
C.*,
C.Id,
C.UserId,
C.OrganizationId,
C.Type,
C.Data,
C.Attachments,
C.CreationDate,
C.RevisionDate,
C.Favorite,
C.FolderId,
C.DeletedDate,
C.Reprompt,
C.Key,
CASE
WHEN COALESCE(CU.[ReadOnly], CG.[ReadOnly], 0) = 0
THEN 1
@@ -56,7 +68,19 @@ WHERE
UNION ALL
SELECT
*,
C.Id,
C.UserId,
C.OrganizationId,
C.Type,
C.Data,
C.Attachments,
C.CreationDate,
C.RevisionDate,
C.Favorite,
C.FolderId,
C.DeletedDate,
C.Reprompt,
C.Key,
1 [Edit],
1 [ViewPassword],
1 [Manage],

View File

@@ -10,7 +10,7 @@ BEGIN
DELETE Ca
FROM [dbo].[CipherArchive] Ca
INNER JOIN @Ids I ON Ca.CipherId = I.[Id]
WHERE Ca.UserId = @UserId
WHERE Ca.UserId = @UserId;
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId