fix(测试跟踪): 公共用例库跨项目访问权限报错

--bug=1027020 --user=陈建星 【测试跟踪】只读用户-公用用例库-查看用例-点击复制-进入新建用例页面 https://www.tapd.cn/55049933/s/1384512
--bug=1027214 --user=陈建星 【测试跟踪】项目成员角色用户 无法查看公共用例库的用例 https://www.tapd.cn/55049933/s/1384485
This commit is contained in:
jianxing 2023-06-20 20:17:19 +08:00 committed by fit2-zhao
parent e11bf95f14
commit 317c31f36d
3 changed files with 1 additions and 2 deletions

View File

@ -65,7 +65,6 @@ public class TestCaseTemplateController {
}
@GetMapping("/get/relate/{projectId}")
@RequiresPermissions(value = {PermissionConstants.PROJECT_TEMPLATE_READ_CASE_TEMPLATE, PermissionConstants.PROJECT_TRACK_CASE_READ}, logical = Logical.OR)
public TestCaseTemplateDao getTemplate(@PathVariable String projectId) {
return testCaseTemplateService.getTemplate(projectId);
}

View File

@ -224,7 +224,6 @@ public class IssuesController {
}
@GetMapping("/demand/list/{projectId}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public List getDemandList(@PathVariable String projectId) {
return issuesService.getDemandList(projectId);
}

View File

@ -25,6 +25,7 @@
size="small"
:placeholder="$t('case.please_enter_the_case_name')"
v-model="form.name"
:disabled="readOnly"
@blur="textBlur(val, 'nameRef')"
:maxlength="255"
show-word-limit