Skip to content

Commit

Permalink
Update ConfigController.java, add srcUser when delete config by ids (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorHe1 authored Sep 14, 2023
1 parent 5c8def0 commit 8c9934b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse resp
@Secured(action = ActionTypes.WRITE, signType = SignType.CONFIG)
public RestResult<Boolean> deleteConfigs(HttpServletRequest request, @RequestParam(value = "ids") List<Long> ids) {
String clientIp = RequestUtil.getRemoteIp(request);
String srcUser = RequestUtil.getSrcUserName(request);
final Timestamp time = TimeUtils.getCurrentTime();
List<ConfigInfo> configInfoList = configInfoPersistService.removeConfigInfoByIds(ids, clientIp, null);
List<ConfigInfo> configInfoList = configInfoPersistService.removeConfigInfoByIds(ids, clientIp, srcUser);
if (CollectionUtils.isEmpty(configInfoList)) {
return RestResultUtils.success(true);
}
Expand Down

0 comments on commit 8c9934b

Please sign in to comment.