Browse Source

[Bug][Workflow Definition] fix ordinary users can not create depend task (#11961)

3.2.0-release
caishunfeng 2 years ago committed by GitHub
parent
commit
925e2fa551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml

10
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml

@ -162,13 +162,11 @@
<select id="queryAllProject" resultType="org.apache.dolphinscheduler.dao.entity.Project">
select
<include refid="baseSqlV2">
<property name="alias" value="p"/>
</include>
from t_ds_project p
<include refid="baseSql"/>
from t_ds_project
where 1 = 1
<if test="userId != 0">
right join t_ds_relation_project_user rpu on p.id = rpu.project_id
where rpu.user_id = #{userId}
and user_id = #{userId}
</if>
</select>

Loading…
Cancel
Save