diff --git a/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql b/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql
index cd3bcc3062..5645d05730 100644
--- a/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql
+++ b/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql
@@ -1,3 +1,18 @@
-- 更新资源池
UPDATE test_resource_pool
SET backend_listener = 1;
+
+# permission
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_admin', 'PROJECT_TRACK_CASE:READ+RECOVER', 'PROJECT_TRACK_CASE');
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_admin', 'PROJECT_API_DEFINITION:READ+TIMING_SYNC', 'PROJECT_API_DEFINITION');
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_admin', 'PROJECT_PERFORMANCE_REPORT:READ+COMPARE', 'PROJECT_PERFORMANCE_REPORT');
+
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+RECOVER', 'PROJECT_TRACK_CASE');
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_member', 'PROJECT_API_DEFINITION:READ+TIMING_SYNC', 'PROJECT_API_DEFINITION');
+insert into user_group_permission (id, group_id, permission_id, module_id)
+values (UUID(), 'project_member', 'PROJECT_PERFORMANCE_REPORT:READ+COMPARE', 'PROJECT_PERFORMANCE_REPORT');
diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json
index 75812240ca..c51c2f4e80 100644
--- a/backend/src/main/resources/permission.json
+++ b/backend/src/main/resources/permission.json
@@ -455,6 +455,11 @@
"name": "导出用例",
"resourceId": "PROJECT_TRACK_CASE"
},
+ {
+ "id": "PROJECT_TRACK_CASE:READ+RECOVER",
+ "name": "恢复用例",
+ "resourceId": "PROJECT_TRACK_CASE"
+ },
{
"id": "PROJECT_TRACK_REVIEW:READ",
"name": "查询评审",
@@ -635,6 +640,11 @@
"name": "导出接口",
"resourceId": "PROJECT_API_DEFINITION"
},
+ {
+ "id": "PROJECT_API_DEFINITION:READ+TIMING_SYNC",
+ "name": "定时同步",
+ "resourceId": "PROJECT_API_DEFINITION"
+ },
{
"id": "PROJECT_API_DEFINITION:READ+CREATE_PERFORMANCE",
"name": "创建性能测试",
@@ -790,6 +800,11 @@
"name": "导出报告",
"resourceId": "PROJECT_PERFORMANCE_REPORT"
},
+ {
+ "id": "PROJECT_PERFORMANCE_REPORT:READ+COMPARE",
+ "name": "对比报告",
+ "resourceId": "PROJECT_PERFORMANCE_REPORT"
+ },
{
"id": "PROJECT_REPORT_ANALYSIS:READ",
"name": "查看",
diff --git a/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue b/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue
index 37f472b1f0..20e6048e9c 100644
--- a/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue
+++ b/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue
@@ -65,7 +65,7 @@ export default {
callback: () => {
this.$emit('schedule');
},
- permissions: ['PROJECT_API_DEFINITION:READ+IMPORT_API']
+ permissions: ['PROJECT_API_DEFINITION:READ+TIMING_SYNC']
},
{
label: this.$t('api_test.api_import.label'),
diff --git a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue
index 028279107b..0a6b4fd1b9 100644
--- a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue
+++ b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue
@@ -108,7 +108,7 @@
v-permission="['PROJECT_PERFORMANCE_REPORT:READ']"
@exec="handleView(scope.row)" type="primary"/>