mirror of
https://github.com/bitwarden/server
synced 2026-01-19 00:43:47 +00:00
upgrade identity server 4 to v4 (#842)
* upgrade identity server 4 to v4 * remove script ref
This commit is contained in:
19
src/Sql/dbo/Stored Procedures/Grant_Read.sql
Normal file
19
src/Sql/dbo/Stored Procedures/Grant_Read.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
CREATE PROCEDURE [dbo].[Grant_Read]
|
||||
@SubjectId NVARCHAR(200),
|
||||
@SessionId NVARCHAR(100),
|
||||
@ClientId NVARCHAR(200),
|
||||
@Type NVARCHAR(50)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[GrantView]
|
||||
WHERE
|
||||
(@SubjectId IS NULL OR [SubjectId] = @SubjectId)
|
||||
AND (@ClientId IS NULL OR [ClientId] = @ClientId)
|
||||
AND (@SessionId IS NULL OR [SessionId] = @SessionId)
|
||||
AND (@Type IS NULL OR [Type] = @Type)
|
||||
END
|
||||
Reference in New Issue
Block a user