Commit 7b11bc7c by 宋祥

1.菜单授权仅展示有权限的

parent 762c272d
...@@ -22,11 +22,9 @@ ...@@ -22,11 +22,9 @@
node_ename not in <iterate close=")" open="(" conjunction="," property="notNodeEnames">#notNodeEnames[]#</iterate> node_ename not in <iterate close=")" open="(" conjunction="," property="notNodeEnames">#notNodeEnames[]#</iterate>
</isNotEmpty> </isNotEmpty>
<!-- 非管理员非root节点仅显示有权限的菜单 added by songx at 20240126 --> <!-- 非管理员非root节点仅显示有权限的菜单 added by songx at 20240126 -->
<isNotEqual property="node" compareValue="root">
<isEqual prepend=" AND " property="isUserAdmin" compareValue="0"> <isEqual prepend=" AND " property="isUserAdmin" compareValue="0">
(exists ( exists (
select select c.object_id, d.resource_ename
c. object_id, d.resource_ename
from ${platSchema}.xs_user a, from ${platSchema}.xs_user a,
${platSchema}.xs_user_group_member b, ${platSchema}.xs_user_group_member b,
${platSchema}.xs_authorization c, ${platSchema}.xs_authorization c,
...@@ -36,10 +34,9 @@ ...@@ -36,10 +34,9 @@
and c.object_id = d.id and c.object_id = d.id
and a.login_name = #loginName# and a.login_name = #loginName#
and d.type = 'PAGE' and d.type = 'PAGE'
and m.node_ename = d.resource_ename and find_in_set(d.resource_ename, (select queryMenuPageInfo(m.node_ename)))
) or node_type = '2') )
</isEqual> </isEqual>
</isNotEqual>
</dynamic> </dynamic>
UNION UNION
SELECT SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment