fix(用例管理): 修复用例评审只读权限查看列表报错问题

--bug=1035964 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035964
This commit is contained in:
guoyuqi 2024-02-21 15:40:39 +08:00 committed by 刘瑞斌
parent 58980aa8b4
commit 36c5f06f54
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class CaseReviewController {
@RequiresPermissions(PermissionConstants.CASE_REVIEW_READ_ADD)
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
public CaseReview addCaseReview(@Validated @RequestBody CaseReviewRequest request) {
return caseReviewService.addCaseReview(request, SessionUtils.getUserId());
return caseReviewService.addCaseReview(request, SessionUtils.getUserId());
}
@PostMapping("/copy")
@ -91,7 +91,7 @@ public class CaseReviewController {
@GetMapping("/user-option/{projectId}")
@Operation(summary = "用例管理-用例评审-获取具有评审权限的用户")
@RequiresPermissions(value = {PermissionConstants.CASE_REVIEW_READ_ADD,PermissionConstants.CASE_REVIEW_READ_UPDATE}, logical = Logical.OR)
@RequiresPermissions(value = {PermissionConstants.CASE_REVIEW_READ, PermissionConstants.CASE_REVIEW_READ_ADD, PermissionConstants.CASE_REVIEW_READ_UPDATE}, logical = Logical.OR)
@CheckOwner(resourceId = "#projectId", resourceType = "project")
public List<UserDTO> getReviewUserList(@PathVariable String projectId, @Schema(description = "查询关键字,根据邮箱和用户名查询")
@RequestParam(value = "keyword", required = false) String keyword) {