1
0
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:
Kyle Spearrin
2017-03-29 21:26:19 -04:00
parent 9e10314b21
commit 95fdfeb519
5 changed files with 54 additions and 3 deletions

View File

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