提交 da8dc185 编写于 作者: zhouweidong's avatar zhouweidong

补充免鉴权入口

上级 6cf58adc
......@@ -713,8 +713,9 @@ public class ${itemCodeName}Resource {
</#if>
</#if>
<#comment>数据查询Security权限校验(分组不鉴权)</#comment>
<#comment>数据查询Security权限校验(分组不鉴权、配置[NONE]操作标识不鉴权</#comment>
<#macro DataQuerySecurityAnnotation dataset>
<#if ((dataset.getPSDEOPPriv().getName())!'')!='NONE' >
<#if (de.getStorageMode()==1 || de.getStorageMode()==2 ||de.getStorageMode()==4) && dataset.isEnableGroup()==false>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-search${dataset.codeName}-all')")
......@@ -722,10 +723,12 @@ public class ${itemCodeName}Resource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-search${dataset.codeName}-all') and hasPermission(#context,'${sys.codeName}-${de.codeName}-Get')")
</#if>
</#if>
</#if>
</#macro>
<#comment>单条数据Security权限校验</#comment>
<#comment>单条数据Security权限校验(配置[NONE]操作标识不鉴权)</#comment>
<#macro SecurityAnnotation deaction>
<#if ((deaction.getPSDEOPPriv().getName())!'')!='NONE' >
<#if de.getStorageMode()==1 || de.getStorageMode()==2 ||de.getStorageMode()==4>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-${deaction.codeName}-all')")
......@@ -741,10 +744,12 @@ public class ${itemCodeName}Resource {
</#if>
</#if>
</#if>
</#if>
</#macro>
<#comment>批量数据Security权限校验</#comment>
<#comment>批量数据Security权限校验(配置[NONE]操作标识不鉴权)</#comment>
<#macro SecurityBatchAnnotation deaction>
<#if ((deaction.getPSDEOPPriv().getName())!'')!='NONE' >
<#if de.getStorageMode()==1 || de.getStorageMode()==2 ||de.getStorageMode()==4>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-${deaction.codeName}-all')")
......@@ -758,6 +763,7 @@ public class ${itemCodeName}Resource {
</#if>
</#if>
</#if>
</#if>
</#macro>
<#comment>数据库版本检查注解</#comment>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册