1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

[AC-1682] Fixed MySql script

This commit is contained in:
Rui Tome 2024-03-29 14:17:15 +00:00
parent a957530d5e
commit deee483ab7
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -24,6 +24,7 @@
DROP TEMPORARY TABLE IF EXISTS `TempUserManagers`;
CREATE TEMPORARY TABLE `TempUserManagers` AS
SELECT `OU`.`Id` AS `OrganizationUserId`,
`OU`.`OrganizationId`,
CASE WHEN `OU`.`Type` = 3 THEN 1 ELSE 0 END AS `IsManager`
FROM `OrganizationUser` `OU`
INNER JOIN `Organization` `O` ON `OU`.`OrganizationId` = `O`.`Id`