You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2022/08/04 15:01:27 UTC

[dolphinscheduler] branch dev updated: no-admin user query alert group fix (#11301)

This is an automated email from the ASF dual-hosted git repository.

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new c9cf8c7774 no-admin user query alert group fix (#11301)
c9cf8c7774 is described below

commit c9cf8c77746d85d1c0ff3d2073986a19cc71eacc
Author: JiPeng Wang <10...@users.noreply.github.com>
AuthorDate: Thu Aug 4 23:01:15 2022 +0800

    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<Integer> listAuthorizedResource(int userId, Logger logger) {
-            return alertGroupMapper.listAuthorizedAlertGroupList(userId, null).stream().map(AlertGroup::getId).collect(toSet());
+            List<AlertGroup> alertGroupList = alertGroupMapper.queryAllGroupList();
+            return alertGroupList.stream().map(AlertGroup::getId).collect(toSet());
         }
     }