fix(用例管理): 用例列表页面接口权限问题
--bug=1035851 --user=王旭 【用例管理】只有用例管理查看权限的用户查看功能用例列表报错 https://www.tapd.cn/55049933/s/1464133
This commit is contained in:
parent
5b3e2c1716
commit
32a4ed9448
|
@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
|||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.Logical;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
@ -213,7 +214,7 @@ public class ProjectApplicationController {
|
|||
|
||||
@GetMapping("/case/related/info/{projectId}")
|
||||
@Operation(summary = "用例管理-获取关联需求信息")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_APPLICATION_CASE_READ)
|
||||
@RequiresPermissions(logical = Logical.OR, value = {PermissionConstants.FUNCTIONAL_CASE_READ, PermissionConstants.PROJECT_APPLICATION_CASE_READ})
|
||||
public Map<String, String> getRelatedConfigInfo(@PathVariable("projectId") String projectId) {
|
||||
return projectApplicationService.getRelatedConfigInfo(projectId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue