SbloodyS commented on code in PR #10834:
URL: https://github.com/apache/dolphinscheduler/pull/10834#discussion_r916700312
##########
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml:
##########
@@ -163,10 +163,10 @@
<select id="queryAllProject"
resultType="org.apache.dolphinscheduler.dao.entity.Project">
select
<include refid="baseSql"/>
- from t_ds_project
- where 1=1
+ from t_ds_project p
<if test="userId != 0">
- and user_id = #{userId}
+ right join t_ds_relation_project_user rpu on p.id = rpu.project_id
Review Comment:
Good catch!
--
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]