1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -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

@ -950,7 +950,8 @@ SELECT
PU.[Type],
P.[Enabled],
PU.[Permissions],
P.[UseEvents]
P.[UseEvents],
P.[Status] ProviderStatus
FROM
[dbo].[ProviderUser] PU
LEFT JOIN
@ -976,7 +977,8 @@ BEGIN
[dbo].[ProviderUserProviderDetailsView]
WHERE
[UserId] = @UserId
AND (@Status IS NULL OR [Status] = @Status)
AND [ProviderStatus] != 0 -- Not Pending
AND (@Status IS NULL OR [Status] = @Status)
END
GO