fix(接口测试): 修复接口恢复没有权限校验的缺陷

--bug=1033968 --user=王孝刚
【接口测试】无项目权限用户通过调用/api/api/definition/reduction接口恢复api
https://www.tapd.cn/55049933/s/1447985
This commit is contained in:
wxg0103 2023-12-25 14:49:11 +08:00 committed by Craftsman
parent 9adaab10e9
commit 9a08bffa99

View File

@ -171,6 +171,7 @@ public class ApiDefinitionController {
@PostMapping("/reduction")
@MsAuditLog(module = OperLogModule.API_DEFINITION, type = OperLogConstants.RESTORE, beforeEvent = "#msClass.getLogDetails(#request.ids)", msClass = ApiDefinitionService.class)
@CheckOwner(resourceId = "#request.ids", resourceType = "api_definition")
public void reduction(@RequestBody ApiBatchRequest request) {
apiDefinitionService.reduction(request);
}