rickchengx commented on code in PR #12917:
URL: 
https://github.com/apache/dolphinscheduler/pull/12917#discussion_r1030990337


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/LoggerServiceImpl.java:
##########
@@ -227,4 +235,14 @@ private byte[] getLogBytes(TaskInstance taskInstance) {
         return Bytes.concat(head,
                 logClient.getLogBytes(host.getIp(), host.getPort(), 
taskInstance.getLogPath()));
     }
+
+    private boolean checkPermissionByTaskInstanceId(User loginUser, int 
taskInstanceId, String permissionKey) {
+        Project project = 
projectMapper.queryProjectByTaskInstanceId(taskInstanceId);
+        if (project == null) {
+            return false;
+        }
+        Map<String, Object> result =
+                projectService.checkProjectAndAuth(loginUser, project, 
project.getCode(), permissionKey);

Review Comment:
   Thanks for your suggestion. I'll look into it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to