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;