From c9cf8c77746d85d1c0ff3d2073986a19cc71eacc Mon Sep 17 00:00:00 2001 From: JiPeng Wang <103574007+WangJPLeo@users.noreply.github.com> Date: Thu, 4 Aug 2022 23:01:15 +0800 Subject: [PATCH] no-admin user query alert group fix (#11301) --- .../api/permission/ResourcePermissionCheckServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java index 461de29a19..e013603bd2 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java @@ -433,7 +433,8 @@ public class ResourcePermissionCheckServiceImpl implements ResourcePermissionChe @Override public Set listAuthorizedResource(int userId, Logger logger) { - return alertGroupMapper.listAuthorizedAlertGroupList(userId, null).stream().map(AlertGroup::getId).collect(toSet()); + List alertGroupList = alertGroupMapper.queryAllGroupList(); + return alertGroupList.stream().map(AlertGroup::getId).collect(toSet()); } }