diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_13_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_13_1__data.sql new file mode 100644 index 0000000000..b669bfce03 --- /dev/null +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_13_1__data.sql @@ -0,0 +1,13 @@ +-- set innodb lock wait timeout +SET SESSION innodb_lock_wait_timeout = 7200; + +-- 项目成员权限初始化(遗漏) +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_GROUP:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_MESSAGE:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_TEST_PLAN:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_API:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_CASE:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_BUG:READ'); + +-- set innodb lock wait timeout to default +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file diff --git a/backend/services/project-management/src/main/resources/permission.json b/backend/services/project-management/src/main/resources/permission.json index a62002c008..d51bc9c073 100644 --- a/backend/services/project-management/src/main/resources/permission.json +++ b/backend/services/project-management/src/main/resources/permission.json @@ -137,7 +137,6 @@ { "id": "PROJECT_APPLICATION", "name": "permission.project_application.name", - "license": true, "permissions": [ { "id": "PROJECT_APPLICATION_TEST_PLAN:READ", @@ -198,7 +197,6 @@ { "id": "PROJECT_LOG", "name": "permission.project_log.name", - "license": true, "permissions": [ { "id": "PROJECT_LOG:READ"