fix(用例管理): 尝试修复用例评审详情页权限控制问题

--bug=1035964 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035964
This commit is contained in:
guoyuqi 2024-02-22 10:03:17 +08:00 committed by Craftsman
parent a23419ddea
commit c95a5c047c
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ public class CaseReviewFunctionalCaseController {
@PostMapping("/page")
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例列表")
@RequiresPermissions(PermissionConstants.CASE_REVIEW_READ)
public Pager<List<ReviewFunctionalCaseDTO>> page(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
String userId = StringUtils.EMPTY;
if (request.isViewFlag()) {
@ -78,7 +79,7 @@ public class CaseReviewFunctionalCaseController {
@PostMapping("/module/count")
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例统计模块数量")
@RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ)
@RequiresPermissions(PermissionConstants.CASE_REVIEW_READ)
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
public Map<String, Long> moduleCount(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
String userId = StringUtils.EMPTY;