1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-25 03:21:46 +01:00

standardize join

This commit is contained in:
Kyle Spearrin 2017-05-15 22:00:20 -04:00
parent 564b8194c1
commit 4656e1f690

View File

@ -11,7 +11,7 @@ BEGIN
INNER JOIN
[dbo].[OrganizationUser] OU ON C.[OrganizationId] = OU.[OrganizationId]
INNER JOIN
[dbo].[Organization] O ON C.[OrganizationId] = O.[Id]
[dbo].[Organization] O ON O.[Id] = C.[OrganizationId]
LEFT JOIN
[dbo].[CollectionUser] CU ON OU.[AccessAll] = 0 AND CU.[CollectionId] = C.[Id] AND CU.[OrganizationUserId] = [OU].[Id]
LEFT JOIN