refactor(项目管理): 环境增加checkOwner

This commit is contained in:
wxg0103 2024-02-28 10:14:04 +08:00 committed by 刘瑞斌
parent 24fad297ee
commit 4c7a1a7690
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ public class EnvironmentController {
@GetMapping("/get-options/{projectId}") @GetMapping("/get-options/{projectId}")
@Operation(summary = "项目管理-环境-环境目录-列表") @Operation(summary = "项目管理-环境-环境目录-列表")
@RequiresPermissions(PermissionConstants.PROJECT_ENVIRONMENT_READ) @RequiresPermissions(PermissionConstants.PROJECT_ENVIRONMENT_READ)
@CheckOwner(resourceId = "#projectId", resourceType = "project")
public List<EnvironmentOptionsDTO> list(@PathVariable String projectId) { public List<EnvironmentOptionsDTO> list(@PathVariable String projectId) {
return environmentService.listOption(projectId); return environmentService.listOption(projectId);
} }