fix(测试跟踪): 工作空间环境列表权限控制有误
--bug=1046117 --user=宋昌昌 【系统设置】github#32957系统设置中的环境管理,当只有工作空间管理员权限访问时,点击报错没有权限,并闪一下,回到个人信息,此时的界面渲染有点问题 https://www.tapd.cn/55049933/s/1624826
This commit is contained in:
parent
351a02ee93
commit
b9973e66fa
|
@ -61,11 +61,8 @@ public class TestEnvironmentController {
|
|||
* @return
|
||||
*/
|
||||
@PostMapping("/list/{goPage}/{pageSize}")
|
||||
@RequiresPermissions(value = PermissionConstants.PROJECT_ENVIRONMENT_READ)
|
||||
@RequiresPermissions(value = {PermissionConstants.PROJECT_ENVIRONMENT_READ, PermissionConstants.WORKSPACE_PROJECT_ENVIRONMENT_READ}, logical = Logical.OR)
|
||||
public Pager<List<ApiTestEnvironmentWithBLOBs>> listByCondition(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody EnvironmentRequest environmentRequest) {
|
||||
if (CollectionUtils.isEmpty(environmentRequest.getProjectIds()) || !environmentRequest.getProjectIds().contains(SessionUtils.getCurrentProjectId())) {
|
||||
MSException.throwException(Translator.get("check_owner_case"));
|
||||
}
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
return PageUtils.setPageInfo(page, baseEnvironmentService.listByConditions(environmentRequest));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue