mirror of
https://github.com/bitwarden/server.git
synced 2025-01-13 20:21:22 +01:00
fixed a bad migration change (#1511)
This commit is contained in:
parent
f55708d748
commit
87fb3f533c
@ -17,6 +17,5 @@ BEGIN
|
|||||||
[dbo].[OrganizationUserUserDetailsView]
|
[dbo].[OrganizationUserUserDetailsView]
|
||||||
WHERE
|
WHERE
|
||||||
OrganizationId = @OrganizationId
|
OrganizationId = @OrganizationId
|
||||||
AND Status = 2
|
|
||||||
AND [Type] <= @MinRole
|
AND [Type] <= @MinRole
|
||||||
END
|
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