mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
fix(接口测试): 修复接口恢复没有权限校验的缺陷
--bug=1033968 --user=王孝刚 【接口测试】无项目权限用户通过调用/api/api/definition/reduction接口恢复api https://www.tapd.cn/55049933/s/1447985
This commit is contained in:
parent
9adaab10e9
commit
9a08bffa99
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user