fix(测试计划): 执行测试用例权限问题

--bug=1007795 --user=lyh
【Github#7554】在测试计划中,只给用户查询和关联测试用例的权限,用户有执行测试用例的权限;给了用户执行测试用例的权限,用户反而不能执行测试用例
#7554 https://www.tapd.cn/55049933/s/1066128
This commit is contained in:
shiziyuan9527 2021-11-10 17:39:58 +08:00 committed by shiziyuan9527
parent c766dd9349
commit b7d1bde4af
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@
<el-col :span="10">
<test-plan-test-case-status-button class="status-button"
@statusChange="statusChange"
:is-read-only="isReadOnly"
:is-read-only="statusReadOnly"
:status="testCase.status"/>
</el-col>
</el-row>
@ -219,6 +219,9 @@ export default {
},
systemNameMap() {
return SYSTEM_FIELD_NAME_MAP;
},
statusReadOnly() {
return !hasPermission('PROJECT_TRACK_PLAN:READ+RUN');
}
},
methods: {