mirror of
https://github.com/bitwarden/server.git
synced 2025-07-14 06:07:36 -05:00
fix issues on cipher admin endpoints
This commit is contained in:
@ -209,7 +209,7 @@
|
||||
<Build Include="dbo\Views\InstallationView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Organization_ReadByEnabled.sql" />
|
||||
<Build Include="dbo\Stored Procedures\User_ReadByPremium.sql" />
|
||||
<Build Include="dbo\Stored Procedures\CipherDetails_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\CipherOrganizationDetails_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Cipher_DeleteByUserId.sql" />
|
||||
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByCollectionId.sql" />
|
||||
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByCipherId.sql" />
|
||||
|
@ -1,4 +1,4 @@
|
||||
CREATE PROCEDURE [dbo].[CipherDetails_ReadById]
|
||||
CREATE PROCEDURE [dbo].[CipherOrganizationDetails_ReadById]
|
||||
@Id UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
@ -6,13 +6,12 @@ BEGIN
|
||||
|
||||
SELECT
|
||||
C.*,
|
||||
1 [Edit],
|
||||
CASE
|
||||
WHEN O.[UseTotp] = 1 THEN 1
|
||||
ELSE 0
|
||||
END [OrganizationUseTotp]
|
||||
FROM
|
||||
[dbo].[CipherDetails](NULL) C
|
||||
[dbo].[CipherView] C
|
||||
LEFT JOIN
|
||||
[dbo].[Organization] O ON O.[Id] = C.[OrganizationId]
|
||||
WHERE
|
Reference in New Issue
Block a user