qingwli commented on code in PR #15978:
URL: 
https://github.com/apache/dolphinscheduler/pull/15978#discussion_r1599544052


##########
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml:
##########
@@ -208,4 +208,17 @@
         SELECT DISTINCT(id) as project_id
         FROM t_ds_project
     </select>
+
+    <select id="queryDefinitionCodeListByProjectCodes" 
resultType="java.lang.Long">
+        select
+        code
+        from t_ds_process_definition
+        where 1=1
+        <if test="projectCodes != null and projectCodes.size() != 0">
+            and project_code in
+            <foreach collection="projectCodes" index="index" item="i" open="(" 
separator="," close=")">
+                #{i}
+            </foreach>
+        </if>

Review Comment:
   No, User just can see the project which authed



-- 
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