From de1bbdd03c3920a752c2474551b0d4bce19d9886 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 11 Oct 2022 16:25:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=8F=AA=E8=AF=BB=E7=94=A8=E6=88=B7=E5=8F=AF=E4=BB=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E7=9A=84=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017147 --user=李玉号 【性能测试】只读用户可以修改性能测试报告的名称 --- .../src/business/report/PerformanceTestReportList.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/performance-test/frontend/src/business/report/PerformanceTestReportList.vue b/performance-test/frontend/src/business/report/PerformanceTestReportList.vue index cab45eddfa..a29029874f 100644 --- a/performance-test/frontend/src/business/report/PerformanceTestReportList.vue +++ b/performance-test/frontend/src/business/report/PerformanceTestReportList.vue @@ -182,6 +182,7 @@ import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColu import MsTable from "metersphere-frontend/src/components/table/MsTable"; import {deleteReport, deleteReportBatch, getOverview, getReportTime, renameReport, searchReports} from "@/api/report"; import {getProjectVersions, isProjectVersionEnable} from "metersphere-frontend/src/api/version"; +import {hasPermission} from "metersphere-frontend/src/utils/permission"; export default { name: "PerformanceTestReportList", @@ -459,6 +460,9 @@ export default { } }, openReNameDialog($event) { + if (!hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE')) { + return false; + } this.$refs.renameDialog.open($event); }, rename(data) {