Browse Source

fix resource data authorization does not take effect. (#13318)

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

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

@ -235,7 +235,7 @@ public class ResourcePermissionCheckServiceImpl implements ResourcePermissionChe
} }
List<Resource> ownResourceList = resourceMapper.queryResourceListAuthored(userId, -1); List<Resource> ownResourceList = resourceMapper.queryResourceListAuthored(userId, -1);
relationResources.addAll(ownResourceList); relationResources.addAll(ownResourceList);
return ownResourceList.stream().map(Resource::getId).collect(toSet()); return relationResources.stream().map(Resource::getId).collect(toSet());
} }
@Override @Override

Loading…
Cancel
Save