refactor: 组织或项目禁用后不能再操作里面的资源
This commit is contained in:
parent
8837bd20d3
commit
1b6fb95123
|
@ -4,7 +4,7 @@
|
||||||
<select id="checkoutOwner" resultType="boolean">
|
<select id="checkoutOwner" resultType="boolean">
|
||||||
SELECT count(id) = ${ids.size()}
|
SELECT count(id) = ${ids.size()}
|
||||||
FROM ${table}
|
FROM ${table}
|
||||||
WHERE project_id = #{projectId}
|
WHERE project_id = #{projectId} and (select 1 from project where id = #{projectId} and enable = TRUE)
|
||||||
and id in
|
and id in
|
||||||
<foreach collection="ids" item="id" separator="," open="(" close=")">
|
<foreach collection="ids" item="id" separator="," open="(" close=")">
|
||||||
#{id}
|
#{id}
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
<select id="checkoutOrganizationOwner" resultType="boolean">
|
<select id="checkoutOrganizationOwner" resultType="boolean">
|
||||||
SELECT count(id) = ${ids.size()}
|
SELECT count(id) = ${ids.size()}
|
||||||
FROM ${table}
|
FROM ${table}
|
||||||
WHERE organization_id = #{organizationId}
|
WHERE organization_id = #{organizationId} and (select 1 from organization where id = #{organizationId} and enable = TRUE)
|
||||||
and id in
|
and id in
|
||||||
<foreach collection="ids" item="id" separator="," open="(" close=")">
|
<foreach collection="ids" item="id" separator="," open="(" close=")">
|
||||||
#{id}
|
#{id}
|
||||||
|
|
Loading…
Reference in New Issue