mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[AC-1682] Fixed MySql script
This commit is contained in:
@ -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`
|
||||
|
Reference in New Issue
Block a user