mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
read collection that are write only
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
CREATE PROCEDURE [dbo].[Collection_ReadByUserId]
|
||||
@UserId UNIQUEIDENTIFIER
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@WriteOnly BIT
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
@ -30,4 +31,9 @@ BEGIN
|
||||
OR G.[AccessAll] = 1
|
||||
OR CG.[CollectionId] IS NOT NULL
|
||||
)
|
||||
AND (
|
||||
@WriteOnly = 0
|
||||
OR CU.[ReadOnly] = 0
|
||||
OR CG.[ReadOnly] = 0
|
||||
)
|
||||
END
|
Reference in New Issue
Block a user