mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00: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