1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 16:23:31 +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], END [FolderId],
C.[DeletedDate], C.[DeletedDate],
C.[Reprompt], C.[Reprompt],
C.[Key], C.[Key]
FROM FROM
[dbo].[Cipher] C [dbo].[Cipher] C

View File

@@ -12,7 +12,19 @@ WITH [CTE] AS (
AND [Status] = 2 -- Confirmed AND [Status] = 2 -- Confirmed
) )
SELECT 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 CASE
WHEN COALESCE(CU.[ReadOnly], CG.[ReadOnly], 0) = 0 WHEN COALESCE(CU.[ReadOnly], CG.[ReadOnly], 0) = 0
THEN 1 THEN 1
@@ -56,7 +68,19 @@ WHERE
UNION ALL UNION ALL
SELECT 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 [Edit],
1 [ViewPassword], 1 [ViewPassword],
1 [Manage], 1 [Manage],

View File

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