fix(用例管理): 尝试修复用例评审详情页权限控制问题
--bug=1035964 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035964
This commit is contained in:
parent
a23419ddea
commit
c95a5c047c
|
@ -52,6 +52,7 @@ public class CaseReviewFunctionalCaseController {
|
||||||
|
|
||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例列表")
|
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例列表")
|
||||||
|
@RequiresPermissions(PermissionConstants.CASE_REVIEW_READ)
|
||||||
public Pager<List<ReviewFunctionalCaseDTO>> page(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
|
public Pager<List<ReviewFunctionalCaseDTO>> page(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
|
||||||
String userId = StringUtils.EMPTY;
|
String userId = StringUtils.EMPTY;
|
||||||
if (request.isViewFlag()) {
|
if (request.isViewFlag()) {
|
||||||
|
@ -78,7 +79,7 @@ public class CaseReviewFunctionalCaseController {
|
||||||
|
|
||||||
@PostMapping("/module/count")
|
@PostMapping("/module/count")
|
||||||
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例统计模块数量")
|
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-已关联用例统计模块数量")
|
||||||
@RequiresPermissions(PermissionConstants.FUNCTIONAL_CASE_READ)
|
@RequiresPermissions(PermissionConstants.CASE_REVIEW_READ)
|
||||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||||
public Map<String, Long> moduleCount(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
|
public Map<String, Long> moduleCount(@Validated @RequestBody ReviewFunctionalCasePageRequest request) {
|
||||||
String userId = StringUtils.EMPTY;
|
String userId = StringUtils.EMPTY;
|
||||||
|
|
Loading…
Reference in New Issue