From b08409430272372e291842b552fdcc2e31f77967 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 26 Aug 2022 10:40:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=AA=E8=AF=BB=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=AF=E4=BB=A5=E6=89=A7=E8=A1=8C=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016356 --user=王孝刚 [接口测试] github#17099只读用户使用CTRL+R快捷键可以执行用例 https://www.tapd.cn/55049933/s/1234250 --- .../api/automation/scenario/EditApiScenario.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 1d4db54696..605b55e407 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -112,7 +112,7 @@ + v-permission="['PROJECT_API_SCENARIO:READ+EDIT', 'PROJECT_API_SCENARIO:READ+CREATE', 'PROJECT_API_SCENARIO:READ+COPY']"> {{ $t('api_test.request.debug') }} {{ $t('api_test.automation.generate_report') }} @@ -393,7 +393,8 @@ import { handleCtrlSEvent, hasLicense, objToStrMap, - strMapToObj + strMapToObj, + hasPermission } from "@/common/js/utils"; import "@/common/css/material-icons.css"; import OutsideClick from "@/common/js/outside-click"; @@ -1440,6 +1441,9 @@ export default { }) }, runDebug(runScenario) { + if (!hasPermission('PROJECT_API_SCENARIO:READ+EDIT')) { + return; + } this.mergeScenario(this.scenarioDefinition); if (this.debugLoading) { return;