fix(系统设置): 移除组织时处理非组织级别非全局用户组
--bug=1022029 --user=李玉号 【接口测试】github#21397,1.10.11升级1.20.18 新建、修改用户;授权用户组 选择权限后 项目不展示数据 并且 已经授权的项目展示的是id名不是具体的项目名称 https://www.tapd.cn/55049933/s/1329809 Closes #21397
This commit is contained in:
parent
4c61852e47
commit
18f730acc6
|
@ -273,6 +273,15 @@ DELIMITER ;
|
||||||
CALL test_cursor();
|
CALL test_cursor();
|
||||||
DROP PROCEDURE IF EXISTS test_cursor;
|
DROP PROCEDURE IF EXISTS test_cursor;
|
||||||
|
|
||||||
|
-- 处理非组织级别非全局用户组
|
||||||
|
UPDATE `group`
|
||||||
|
SET scope_id = 'global'
|
||||||
|
WHERE id IN
|
||||||
|
(SELECT id
|
||||||
|
FROM (SELECT * FROM `group`) AS temp
|
||||||
|
WHERE type != 'ORGANIZATION'
|
||||||
|
AND scope_id IN (SELECT id FROM organization));
|
||||||
|
|
||||||
-- 工作空间服务集成
|
-- 工作空间服务集成
|
||||||
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
VALUES (UUID(), 'ws_admin', 'WORKSPACE_SERVICE:READ', 'WORKSPACE_SERVICE');
|
VALUES (UUID(), 'ws_admin', 'WORKSPACE_SERVICE:READ', 'WORKSPACE_SERVICE');
|
||||||
|
|
Loading…
Reference in New Issue