refactor(项目管理): 环境增加checkOwner
This commit is contained in:
parent
24fad297ee
commit
4c7a1a7690
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue