mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
orgs must have one owner checks
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
CREATE PROCEDURE [dbo].[OrganizationUser_ReadByOrganizationId]
|
||||
@OrganizationId UNIQUEIDENTIFIER,
|
||||
@Type TINYINT
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[OrganizationUserView]
|
||||
WHERE
|
||||
[OrganizationId] = @OrganizationId
|
||||
AND (@Type IS NULL OR [Type] = @Type)
|
||||
END
|
Reference in New Issue
Block a user