diff --git a/backend/src/main/resources/db/migration/V96__v1.13.1__release.sql b/backend/src/main/resources/db/migration/V96__v1.13.1__release.sql index 9937736e26..b9d9837c3b 100644 --- a/backend/src/main/resources/db/migration/V96__v1.13.1__release.sql +++ b/backend/src/main/resources/db/migration/V96__v1.13.1__release.sql @@ -16,3 +16,18 @@ alter table test_plan modify principal varchar(50) null comment 'Plan principal' ALTER TABLE test_case_review_test_case ADD `order` bigint(20) NOT NULL COMMENT '自定义排序,间隔5000'; + + +-- 报表默认权限插入 + +-- 项目管理员 +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_REPORT_ANALYSIS:READ+UPDATE', 'PROJECT_REPORT_ANALYSIS'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_REPORT_ANALYSIS:READ+CREATE', 'PROJECT_REPORT_ANALYSIS'); + +-- 项目成员 +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_REPORT_ANALYSIS:READ+UPDATE', 'PROJECT_REPORT_ANALYSIS'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_REPORT_ANALYSIS:READ+CREATE', 'PROJECT_REPORT_ANALYSIS'); diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 73024e68cd..5d8b7e01d1 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -809,25 +809,25 @@ "id": "PROJECT_REPORT_ANALYSIS:READ", "name": "查看", "resourceId": "PROJECT_REPORT_ANALYSIS", - "license": true + "license": false }, { "id": "PROJECT_REPORT_ANALYSIS:READ+EXPORT", "name": "导出", "resourceId": "PROJECT_REPORT_ANALYSIS", - "license": true + "license": false }, { "id": "PROJECT_REPORT_ANALYSIS:READ+UPDATE", "name": "保存", "resourceId": "PROJECT_REPORT_ANALYSIS", - "license": true + "license": false }, { "id": "PROJECT_REPORT_ANALYSIS:READ+CREATE", "name": "另存为", "resourceId": "PROJECT_REPORT_ANALYSIS", - "license": true + "license": false } ], "resource": [ @@ -969,8 +969,7 @@ }, { "id": "PROJECT_REPORT_ANALYSIS", - "name": "报表", - "license": true + "name": "报表" } ] } \ No newline at end of file