mirror of
https://github.com/bitwarden/server.git
synced 2025-01-12 20:20:37 +01:00
fixed a bad migration change (#1511)
This commit is contained in:
parent
f55708d748
commit
87fb3f533c
@ -17,6 +17,5 @@ BEGIN
|
||||
[dbo].[OrganizationUserUserDetailsView]
|
||||
WHERE
|
||||
OrganizationId = @OrganizationId
|
||||
AND Status = 2
|
||||
AND [Type] <= @MinRole
|
||||
END
|
||||
|
@ -0,0 +1,22 @@
|
||||
IF OBJECT_ID('[dbo].[OrganizationUser_ReadByMinimumRole]') IS NOT NULL
|
||||
BEGIN
|
||||
DROP PROCEDURE [dbo].[OrganizationUser_ReadByMinimumRole]
|
||||
END
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[OrganizationUser_ReadByMinimumRole]
|
||||
@OrganizationId UNIQUEIDENTIFIER,
|
||||
@MinRole TINYINT
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[OrganizationUserUserDetailsView]
|
||||
WHERE
|
||||
OrganizationId = @OrganizationId
|
||||
AND Status = 2
|
||||
AND [Type] <= @MinRole
|
||||
END
|
Loading…
Reference in New Issue
Block a user