Commit 9b0828be8ec0280e3711bb1a22cc5b4f9121b1d6

Authored by RuoYi
1 parent 2cc14e5f

角色禁用&菜单隐藏不查询权限

ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml
... ... @@ -96,7 +96,8 @@
96 96 from sys_menu m
97 97 left join sys_role_menu rm on m.menu_id = rm.menu_id
98 98 left join sys_user_role ur on rm.role_id = ur.role_id
99   - where ur.user_id = #{userId}
  99 + left join sys_role r on r.role_id = ur.role_id
  100 + where m.visible = '0' and r.status = '0' and ur.user_id = #{userId}
100 101 </select>
101 102  
102 103 <select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult">
... ...