mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
[AC-1682] Removed unnecessary Collection table join on ManagersEditAssignedCollectionUsers sql script
This commit is contained in:
@ -4,9 +4,7 @@ SET cu.[ReadOnly] = 0,
|
|||||||
cu.[HidePasswords] = 0,
|
cu.[HidePasswords] = 0,
|
||||||
cu.[Manage] = 1
|
cu.[Manage] = 1
|
||||||
FROM [dbo].[CollectionUser] cu
|
FROM [dbo].[CollectionUser] cu
|
||||||
JOIN [dbo].[Collection] c
|
INNER JOIN [dbo].[OrganizationUser] ou
|
||||||
ON cu.[CollectionId] = c.[Id]
|
|
||||||
JOIN [dbo].[OrganizationUser] ou
|
|
||||||
ON cu.[OrganizationUserId] = ou.[Id]
|
ON cu.[OrganizationUserId] = ou.[Id]
|
||||||
WHERE (ou.[Type] = 3 OR (ou.[Permissions] IS NOT NULL AND
|
WHERE (ou.[Type] = 3 OR (ou.[Permissions] IS NOT NULL AND
|
||||||
ISJSON(ou.[Permissions]) > 0 AND JSON_VALUE(ou.[Permissions], '$.editAssignedCollections') = 'true'))
|
ISJSON(ou.[Permissions]) > 0 AND JSON_VALUE(ou.[Permissions], '$.editAssignedCollections') = 'true'))
|
||||||
|
Reference in New Issue
Block a user