1 Spring的权限标签
标签的属性有:ifAllGranted、ifAnyGranted、ifNotGranted,其属性值为sales中录入的资源编码
属性说明:
ifAllGranted:只有当前用户同时拥有ROLE_ADMIN和ROLE_USER权限时,才能显示标签内部内容
<security:authorize ifAllGranted ="ROLE_ADMIN, ROLE_USER">
<button class='btn' onclick="save_type_form();" hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
ifAnyGranted:如果当前用户拥有ROLE_ADMIN或ROLE_USER其中一个权限时,就能显示标签内部内容
<security:authorize ifAnyGranted="ROLE_ADMIN, ROLE_USER">
<button class='btn' onclick="save_type_form();" hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
ifNotGranted:如果当前用户没有ROLE_ADMIN时,才能显示标签内部内容
<security:authorize ifNotGranted="ROLE_ADMIN">
<button class='btn' onclick="save_type_form();" hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
iMatrix6.0.0.RC1Demo演示登陆地址:http://demo.imatrix.net.cn:8888/imatrix
如有使用iMatrix平台问题请登录iMatrix平台论坛咨询:
http://bbs.imatrix.net.cn/forum.php?mod=forumdisplay&fid=37
或者加入扣扣群307599527