mirror of
https://github.com/bitwarden/server.git
synced 2025-05-17 09:35:39 -05:00
21 lines
460 B
Transact-SQL
21 lines
460 B
Transact-SQL
CREATE PROCEDURE [dbo].[CipherDetails_ReadWithoutOrganizationsByUserId]
|
|
@UserId UNIQUEIDENTIFIER,
|
|
@Deleted BIT = 0
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
*,
|
|
1 [Edit],
|
|
0 [OrganizationUseTotp]
|
|
FROM
|
|
[dbo].[CipherDetails](@UserId)
|
|
WHERE
|
|
[UserId] = @UserId
|
|
AND
|
|
(
|
|
(@Deleted = 1 AND [DeletedDate] IS NOT NULL)
|
|
OR (@Deleted = 0 AND [DeletedDate] IS NULL)
|
|
)
|
|
END |