@RequiresPermissionss是否可以填写多种权限标识,只要满足其一就可以访问?例如下面这种写法
@RequiresPermissions({"hn.content.accident","/platform/hn/carinfo"})
@RequiresPermissionss是否可以填写多种权限标识,只要满足其一就可以访问?例如下面这种写法
@RequiresPermissions({"hn.content.accident","/platform/hn/carinfo"})
@At("/add")
@Ok("beetl:/platform/mem/parter/add.html")
@RequiresPermissions({"mem.admin.add","mem.admin.check.add","mem.admin.child.add"})
@wendal 注解如下:
* <p>For example, this declaration:
* <p/>
* <code>@RequiresPermissions( {"file:read", "write:aFile.txt"} )<br/>
* void someMethod();</code>
* <p/>
* indicates the current user must be able to both <tt>read</tt> and <tt>write</tt>
* to the file <tt>aFile.txt</tt> in order for the <tt>someMethod()</tt> to execute, otherwise
* an {@link org.apache.shiro.authz.AuthorizationException AuthorizationException} will be thrown.
*
感觉我就是这样写的呀,不明白,指教一下呀!
就没看全
@RequiresPermissions(value={"mem.admin.add","mem.admin.check.add","mem.admin.child.add"}, logical=Logical.OR)
@wendal 谢谢,我怀疑是这个参数,但不知如何写!