From 08bb43ad4976f763df38793f685c81f105fb2d17 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 1 Feb 2023 14:49:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=BB=84=E7=BB=87=E6=97=B6=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=9D=9E=E7=BB=84=E7=BB=87=E7=BA=A7=E5=88=AB=E9=9D=9E=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E7=94=A8=E6=88=B7=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022029 --user=李玉号 【接口测试】github#21397,1.10.11升级1.20.18 新建、修改用户;授权用户组 选择权限后 项目不展示数据 并且 已经授权的项目展示的是id名不是具体的项目名称 https://www.tapd.cn/55049933/s/1329809 Closes #21397 --- .../main/resources/db/migration/V97__v1.14_release.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/src/main/resources/db/migration/V97__v1.14_release.sql b/backend/src/main/resources/db/migration/V97__v1.14_release.sql index 729ce16c65..f84a3f6700 100644 --- a/backend/src/main/resources/db/migration/V97__v1.14_release.sql +++ b/backend/src/main/resources/db/migration/V97__v1.14_release.sql @@ -272,6 +272,15 @@ DELIMITER ; CALL 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) VALUES (UUID(), 'ws_admin', 'WORKSPACE_SERVICE:READ', 'WORKSPACE_SERVICE');