1
0
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:
Addison Beck 2021-08-12 13:06:02 -04:00 committed by GitHub
parent f55708d748
commit 87fb3f533c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -17,6 +17,5 @@ BEGIN
[dbo].[OrganizationUserUserDetailsView]
WHERE
OrganizationId = @OrganizationId
AND Status = 2
AND [Type] <= @MinRole
END

View File

@ -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