1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-07 05:58:13 -05:00

check status on subvault user sprocs

This commit is contained in:
Kyle Spearrin 2017-04-01 22:17:42 -04:00
parent ab173cf5cf
commit 0961d86d65
2 changed files with 3 additions and 1 deletions

View File

@ -13,5 +13,6 @@ BEGIN
INNER JOIN INNER JOIN
[dbo].[OrganizationUser] OU ON OU.[Id] = SU.[OrganizationUserId] [dbo].[OrganizationUser] OU ON OU.[Id] = SU.[OrganizationUserId]
WHERE WHERE
[OU].[UserId] = @UserId OU.[UserId] = @UserId
AND OU.[Status] = 2 -- Confirmed
END END

View File

@ -14,4 +14,5 @@ BEGIN
[OrganizationUser] OU ON OU.[Id] = SU.[OrganizationUserId] [OrganizationUser] OU ON OU.[Id] = SU.[OrganizationUserId]
WHERE WHERE
OU.[UserId] = @UserId OU.[UserId] = @UserId
AND OU.[Status] = 2 -- Confirmed
END END