1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-07 02:52:50 -05:00

[Provider] Prevent including pending organizations in SyncResponse (#1482)

This commit is contained in:
Oscar Hinton
2021-07-22 22:18:34 +02:00
committed by GitHub
parent 757102fd96
commit 792fb377dd
5 changed files with 10 additions and 4 deletions

View File

@ -11,5 +11,6 @@ BEGIN
[dbo].[ProviderUserProviderDetailsView]
WHERE
[UserId] = @UserId
AND [ProviderStatus] != 0 -- Not Pending
AND (@Status IS NULL OR [Status] = @Status)
END

View File

@ -9,7 +9,8 @@ SELECT
PU.[Type],
P.[Enabled],
PU.[Permissions],
P.[UseEvents]
P.[UseEvents],
P.[Status] ProviderStatus
FROM
[dbo].[ProviderUser] PU
LEFT JOIN