From ea10d5be8313fbf610425b25034da5ee2df3b6ae Mon Sep 17 00:00:00 2001 From: masaimu Date: Thu, 19 Oct 2023 17:33:43 +0800 Subject: [PATCH] fix: user check (#702) --- .../server/home/web/controller/AlarmGroupFacadeImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlarmGroupFacadeImpl.java b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlarmGroupFacadeImpl.java index 2d1e0dea9..9338b03b8 100644 --- a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlarmGroupFacadeImpl.java +++ b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlarmGroupFacadeImpl.java @@ -160,10 +160,10 @@ public JsonResult updateC(@RequestBody AlarmGroupDTO alarmGroup) { return jsonResult; } - return update(alarmGroup); + return update(alarmGroup, true); } - public JsonResult update(AlarmGroupDTO alarmGroup) { + public JsonResult update(AlarmGroupDTO alarmGroup, boolean needCheckUser) { final JsonResult result = new JsonResult<>(); facadeTemplate.manage(result, new ManageCallback() { @Override @@ -178,7 +178,7 @@ public void checkParameter() { } List persons = alarmGroup.getUserList(); MonitorUser mu = RequestContext.getContext().mu; - if (!CollectionUtils.isEmpty(persons)) { + if (!CollectionUtils.isEmpty(persons) && needCheckUser) { for (String person : persons) { ParaCheckUtil.checkParaBoolean( parameterSecurityService.checkUserTenantAndWorkspace(person, mu),