我使用的标签Combinining四郎:调用hasPermission标签
<shiro:hasPermission name="content:view">在不同的地方
在我的JSP来显示或根据当前用户具有权限的隐藏内容。
不过,有时我需要的权限相结合,例如
<shiro:hasPermission name="content:view OR content:edit">
或
<shiro:hasPermission name="content:view AND content:edit">
我怎么能这样做?我可以使用hasPermission中的 < c:如果> 标签? shiro是否有可用的东西,还是我应该实施自己的EL功能?
TIA,
Serafeim
大声笑可能这是一个较新版本的Shiro,因为我之前使用1.5年之前我曾问过这个问题:) – Serafeim 2013-06-03 10:35:39
所以将它标记为正确答案:) – Marx 2013-06-06 12:44:01
这是一个带有“hasAnyPermission”的梦吗?上次我查了一下,没有这样的标签。 – Marc 2015-10-01 19:45:49