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:
parent
a957530d5e
commit
deee483ab7
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user