Browse Source

no-admin user query alert group fix (#11301)

3.1.0-release
JiPeng Wang 2 years ago committed by GitHub
parent
commit
c9cf8c7774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java

3
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java

@ -433,7 +433,8 @@ public class ResourcePermissionCheckServiceImpl implements ResourcePermissionChe
@Override @Override
public Set<Integer> listAuthorizedResource(int userId, Logger logger) { 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());
} }
} }

Loading…
Cancel
Save